Skip to content

Commit d7f80b6

Browse files
committed
Rename first iterator to prevent shadowing.
1 parent b42ff60 commit d7f80b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wallet/db.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,11 +604,11 @@ bool CDB::PeriodicFlush(std::string strFile)
604604
{
605605
// Don't do this if any databases are in use
606606
int nRefCount = 0;
607-
std::map<std::string, int>::iterator mi = bitdb.mapFileUseCount.begin();
608-
while (mi != bitdb.mapFileUseCount.end())
607+
std::map<std::string, int>::iterator mit = bitdb.mapFileUseCount.begin();
608+
while (mit != bitdb.mapFileUseCount.end())
609609
{
610-
nRefCount += (*mi).second;
611-
mi++;
610+
nRefCount += (*mit).second;
611+
mit++;
612612
}
613613

614614
if (nRefCount == 0)

0 commit comments

Comments
 (0)