diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-05-18 09:42:14 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-05-19 09:56:16 +0200 |
commit | 211adc074a662505f2b54f3f2755f4fefc167aac (patch) | |
tree | 75ae8f49fcd201cc359664317df049f04c78c41b /src/policy/fees.cpp | |
parent | ea6fde3f1d2694176a657b69fb0eeb5426e6f309 (diff) |
Use range-based for loops (C++11) when looping over vector elements
Diffstat (limited to 'src/policy/fees.cpp')
-rw-r--r-- | src/policy/fees.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index bad3de4b44..37c47f2232 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -604,8 +604,8 @@ void CBlockPolicyEstimator::processBlock(unsigned int nBlockHeight, unsigned int countedTxs = 0; // Update averages with data points from current block - for (unsigned int i = 0; i < entries.size(); i++) { - if (processBlockTx(nBlockHeight, entries[i])) + for (const auto& entry : entries) { + if (processBlockTx(nBlockHeight, entry)) countedTxs++; } |