diff options
| author | practicalswift <[email protected]> | 2017-05-18 09:42:14 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-05-19 09:56:16 +0200 |
| commit | 211adc074a662505f2b54f3f2755f4fefc167aac (patch) | |
| tree | 75ae8f49fcd201cc359664317df049f04c78c41b /src/policy/fees.cpp | |
| parent | Merge #8329: Consensus: MOVEONLY: Move functions for tx verification (diff) | |
| download | discoin-211adc074a662505f2b54f3f2755f4fefc167aac.tar.xz discoin-211adc074a662505f2b54f3f2755f4fefc167aac.zip | |
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 bad3de4b4..37c47f223 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++; } |