diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-09 13:21:42 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-07-09 13:08:42 +0200 |
commit | fa73493930e35850e877725167dc9d42e47015c8 (patch) | |
tree | c10ab665926e406678e16515f93c566f95a002fa /src | |
parent | fa7b164d62d9f12e9cda79bf28bf435acf2d1e38 (diff) |
refactor: Use C++11 range-based for loop
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/bdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/bdb.cpp b/src/wallet/bdb.cpp index 5f823d5906..54a9aa34e0 100644 --- a/src/wallet/bdb.cpp +++ b/src/wallet/bdb.cpp @@ -623,8 +623,8 @@ bool BerkeleyDatabase::PeriodicFlush() if (!lockDb) return false; // Don't flush if any databases are in use - for (auto it = env->mapFileUseCount.begin() ; it != env->mapFileUseCount.end(); it++) { - if ((*it).second > 0) return false; + for (const auto& use_count : env->mapFileUseCount) { + if (use_count.second > 0) return false; } // Don't flush if there haven't been any batch writes for this database. |