diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2017-04-13 00:51:39 +0200 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2017-06-22 03:48:50 +0200 |
commit | 3eff827f89a2dd8cc72216d1ab2add40c290517b (patch) | |
tree | 3aacb443867702457bbe0695a57bf1c830009e3a /src/checkpoints.cpp | |
parent | 33aed5bf89cf0337ab5eccadc50594930178039b (diff) |
scripted-diff: Remove BOOST_REVERSE_FOREACH
-BEGIN VERIFY SCRIPT-
sed -i 's/BOOST_REVERSE_FOREACH(\(.*\), \(.*\))/for (\1 : reverse_iterate(\2))/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ;
-END VERIFY SCRIPT-
Diffstat (limited to 'src/checkpoints.cpp')
-rw-r--r-- | src/checkpoints.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 7afc6a00f4..54260215d6 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -20,7 +20,7 @@ namespace Checkpoints { { const MapCheckpoints& checkpoints = data.mapCheckpoints; - BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, checkpoints) + for (const MapCheckpoints::value_type& i : reverse_iterate(checkpoints)) { const uint256& hash = i.second; BlockMap::const_iterator t = mapBlockIndex.find(hash); |