mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove more wasteful allocate/increment/decrement/free cycles.
This commit is contained in:
@@ -19,7 +19,8 @@ AccountState::AccountState(const NewcoinAddress& id) : mValid(false)
|
||||
mValid = true;
|
||||
}
|
||||
|
||||
AccountState::AccountState(SerializedLedgerEntry::pointer ledgerEntry) : mLedgerEntry(ledgerEntry), mValid(false)
|
||||
AccountState::AccountState(const SerializedLedgerEntry::pointer& ledgerEntry) :
|
||||
mLedgerEntry(ledgerEntry), mValid(false)
|
||||
{
|
||||
if (!mLedgerEntry) return;
|
||||
if (mLedgerEntry->getType() != ltACCOUNT_ROOT) return;
|
||||
|
||||
Reference in New Issue
Block a user