Skip to content

Commit ec47ce0

Browse files
committed
fixup: for auto iterator
1 parent 8c6c46c commit ec47ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

divi/src/test/coins_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ BOOST_AUTO_TEST_CASE(coins_cache_simulation_test)
128128

129129
// Once every 1000 iterations and at the end, verify the full cache.
130130
if (insecure_rand() % 1000 == 1 || i == NUM_SIMULATION_ITERATIONS - 1) {
131-
for (std::map<uint256, CCoins>::iterator it = result.begin(); it != result.end(); it++) {
131+
for (auto it = result.begin(); it != result.end(); it++) {
132132
const CCoins* coins = stack.back()->AccessCoins(it->first);
133133
if (coins) {
134134
BOOST_CHECK(*coins == it->second);

0 commit comments

Comments
 (0)