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/script_tests.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/script_tests.cpp')
| -rw-r--r-- | src/test/script_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp index 343c645cb..619560504 100644 --- a/src/test/script_tests.cpp +++ b/src/test/script_tests.cpp @@ -927,7 +927,7 @@ BOOST_AUTO_TEST_CASE(script_build) std::string strGen; - BOOST_FOREACH(TestBuilder& test, tests) { + for (TestBuilder& test : tests) { test.Test(); std::string str = JSONPrettyPrint(test.GetJSON()); #ifndef UPDATE_JSON_TESTS @@ -1033,7 +1033,7 @@ sign_multisig(CScript scriptPubKey, std::vector<CKey> keys, CTransaction transac // and vice-versa) // result << OP_0; - BOOST_FOREACH(const CKey &key, keys) + for (const CKey &key : keys) { std::vector<unsigned char> vchSig; BOOST_CHECK(key.Sign(hash, vchSig)); |