Some cleanups.

This commit is contained in:
JoelKatz
2012-10-20 12:20:47 -07:00
parent 17437784d6
commit cc94abf891
2 changed files with 2 additions and 3 deletions

View File

@@ -31,6 +31,7 @@ bool TransactionMetaSet::isNodeAffected(const uint256& node) const
STObject& TransactionMetaSet::getAffectedNode(const uint256& node, SField::ref type, bool overrideType)
{
assert(&type);
for (STArray::iterator it = mNodes.begin(); it != mNodes.end(); ++it)
{
if (it->getFieldH256(sfLedgerIndex) == node)
@@ -47,7 +48,7 @@ STObject& TransactionMetaSet::getAffectedNode(const uint256& node, SField::ref t
assert(obj.getFName() == type);
obj.setFieldH256(sfLedgerIndex, node);
return mNodes.back();
return obj;
}
const STObject& TransactionMetaSet::peekAffectedNode(const uint256& node) const