aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2017-03-18 07:19:16 +0100
committerPavel Janík <Pavel@Janik.cz>2017-03-18 07:59:51 +0100
commitd7f80b6dcb237ebee649fc01533c68ba59bc9abd (patch)
treea51da26d1e56bdf8bd7b98b86b4f09125b784cd2 /src/wallet
parentb42ff60c7e5b71a135b622602a01fc3bf0bd99bf (diff)
Rename first iterator to prevent shadowing.
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/db.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index 80c42bd91b..0801bd7300 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -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)