Skip to content

Commit

Permalink
Rename first iterator to prevent shadowing.
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanik committed Mar 18, 2017
1 parent b42ff60 commit d7f80b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wallet/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,11 +604,11 @@ bool CDB::PeriodicFlush(std::string strFile)
{
// Don't do this if any databases are in use
int nRefCount = 0;
std::map<std::string, int>::iterator mi = bitdb.mapFileUseCount.begin();
while (mi != bitdb.mapFileUseCount.end())
std::map<std::string, int>::iterator mit = bitdb.mapFileUseCount.begin();
while (mit != bitdb.mapFileUseCount.end())
{
nRefCount += (*mi).second;
mi++;
nRefCount += (*mit).second;
mit++;
}

if (nRefCount == 0)
Expand Down

0 comments on commit d7f80b6

Please sign in to comment.