Add SHAMap::iterator

This commit is contained in:
Vinnie Falco
2015-06-13 08:37:36 -07:00
committed by Nik Bougalis
parent eb709f415b
commit c53b9f3713
4 changed files with 92 additions and 14 deletions

View File

@@ -1857,8 +1857,7 @@ void applyTransactions (std::shared_ptr<SHAMap> const& set,
if (set)
{
for (std::shared_ptr<SHAMapItem> item = set->peekFirstItem (); !!item;
item = set->peekNextItem (item->getTag ()))
for (auto const item : *set)
{
// If the checkLedger doesn't have the transaction
if (!checkLedger->hasTransaction (item->getTag ()))