diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2017-05-23 13:58:35 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2017-05-23 14:08:20 -0700 |
commit | f2f7e97e8cc24cf7a2b7954cb74ecfd0f91a95ad (patch) | |
tree | 2bb524079ce9233098fb60589b6f2a7f848a47e1 /src/policy | |
parent | 7e96ecf075e8633f83ed1e05052402fb6b4d6186 (diff) | |
parent | 211adc074a662505f2b54f3f2755f4fefc167aac (diff) |
Merge #10347: Use range-based for loops (C++11) when looping over vector elements
211adc0 Use range-based for loops (C++11) when looping over vector elements (practicalswift)
Tree-SHA512: 0e007f20dcef99d3c7a1036265e00f689d69f42e02fd82dd8389f45b52d31947e5f9388de2610d3d9bd9f554915ce0d35ebce561e5ae3a9013956d0ee4937145
Diffstat (limited to 'src/policy')
-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++; } |