diff options
| author | practicalswift <[email protected]> | 2018-06-18 07:58:28 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-08-27 18:19:33 +0200 |
| commit | f34c8c466a0e514edac2e8683127b4176ad5d321 (patch) | |
| tree | 587ba001d5d6eaae71d234009098710dd30354c3 /src/test/key_io_tests.cpp | |
| parent | Merge #14023: Remove accounts rpcs (diff) | |
| download | discoin-f34c8c466a0e514edac2e8683127b4176ad5d321.tar.xz discoin-f34c8c466a0e514edac2e8683127b4176ad5d321.zip | |
Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations.
Diffstat (limited to 'src/test/key_io_tests.cpp')
| -rw-r--r-- | src/test/key_io_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/key_io_tests.cpp b/src/test/key_io_tests.cpp index 7e475ac61..a0c10d8dd 100644 --- a/src/test/key_io_tests.cpp +++ b/src/test/key_io_tests.cpp @@ -136,7 +136,7 @@ BOOST_AUTO_TEST_CASE(key_io_invalid) std::string exp_base58string = test[0].get_str(); // must be invalid as public and as private key - for (auto chain : { CBaseChainParams::MAIN, CBaseChainParams::TESTNET, CBaseChainParams::REGTEST }) { + for (const auto& chain : { CBaseChainParams::MAIN, CBaseChainParams::TESTNET, CBaseChainParams::REGTEST }) { SelectParams(chain); destination = DecodeDestination(exp_base58string); BOOST_CHECK_MESSAGE(!IsValidDestination(destination), "IsValid pubkey in mainnet:" + strTest); |