From 3a88ea66df9edf0744aae36e2f2ab362f224812e Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Tue, 15 May 2012 16:18:56 -0700 Subject: [PATCH] Cosmetic changes. --- src/TransactionEngine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TransactionEngine.cpp b/src/TransactionEngine.cpp index 0900987df8..aba6aa276b 100644 --- a/src/TransactionEngine.cpp +++ b/src/TransactionEngine.cpp @@ -189,7 +189,7 @@ TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTran if (result == terSUCCESS) { // Write back the account states and add the transaction to the ledger // WRITEME: Special case code for changing transaction key - for(std::vector::iterator it=accounts.begin(), end=accounts.end(); + for (std::vector::iterator it=accounts.begin(), end=accounts.end(); it != end; ++it) { if (it->first == taaCREATE) { @@ -198,12 +198,12 @@ TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTran } else if (it->first==taaMODIFY) { - if(mLedger->writeBack(lepNONE, it->second) & lepERROR) + if (mLedger->writeBack(lepNONE, it->second) & lepERROR) assert(false); } else if (it->first == taaDELETE) { - if(!mLedger->peekAccountStateMap()->delItem(it->second->getIndex())) + if (!mLedger->peekAccountStateMap()->delItem(it->second->getIndex())) assert(false); } }