Rename first iterator to prevent shadowing.

This commit is contained in:
Pavel Janík 2017-03-18 07:19:16 +01:00
parent b42ff60c7e
commit d7f80b6dcb

View File

@ -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)