diff options
| author | Jorge Timón <[email protected]> | 2017-06-02 03:18:57 +0200 |
|---|---|---|
| committer | Jorge Timón <[email protected]> | 2017-06-05 20:10:50 +0200 |
| commit | 7c00c267264ad80c2991b2f6c2ae08c2d9c9732b (patch) | |
| tree | ced05e4a7ca759b23c0306092a66aa0e1c65ce36 /src/test/test_bitcoin.cpp | |
| parent | Small preparations for Q_FOREACH, PAIRTYPE and #include <boost/foreach.hpp> r... (diff) | |
| download | discoin-7c00c267264ad80c2991b2f6c2ae08c2d9c9732b.tar.xz discoin-7c00c267264ad80c2991b2f6c2ae08c2d9c9732b.zip | |
scripted-diff: Fully remove BOOST_FOREACH
-BEGIN VERIFY SCRIPT-
sed -i 's/BOOST_FOREACH *(\(.*\),/for (\1 :/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp ;
-END VERIFY SCRIPT-
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index cb625bda1..68d72a1bb 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -121,7 +121,7 @@ TestChain100Setup::CreateAndProcessBlock(const std::vector<CMutableTransaction>& // Replace mempool-selected txns with just coinbase plus passed-in txns: block.vtx.resize(1); - BOOST_FOREACH(const CMutableTransaction& tx, txns) + for (const CMutableTransaction& tx : txns) block.vtx.push_back(MakeTransactionRef(tx)); // IncrementExtraNonce creates a valid coinbase and merkleRoot unsigned int extraNonce = 0; |