Some const-correctness.

const SLE::pointer & -> SLE::ref
This commit is contained in:
JoelKatz
2012-08-31 18:26:45 -07:00
parent 9ef0a5491b
commit 02bd898e51
16 changed files with 74 additions and 72 deletions

View File

@@ -8,14 +8,15 @@
class SerializedLedgerEntry : public SerializedType
{
public:
typedef boost::shared_ptr<SerializedLedgerEntry> pointer;
typedef boost::shared_ptr<SerializedLedgerEntry> pointer;
typedef const boost::shared_ptr<SerializedLedgerEntry>& ref;
protected:
uint256 mIndex;
LedgerEntryType mType;
STUInt16 mVersion;
STObject mObject;
const LedgerEntryFormat* mFormat;
uint256 mIndex;
LedgerEntryType mType;
STUInt16 mVersion;
STObject mObject;
const LedgerEntryFormat* mFormat;
SerializedLedgerEntry* duplicate() const { return new SerializedLedgerEntry(*this); }