diff options
author | Lőrinc <pap.lorinc@gmail.com> | 2024-11-24 19:20:11 +0100 |
---|---|---|
committer | Lőrinc <pap.lorinc@gmail.com> | 2024-11-25 20:11:54 +0100 |
commit | 3305972f7bfd78181566e4297891c2dd7cae0f2b (patch) | |
tree | d82633b843aaee6daa946339ff994dc6f033295d /src/test | |
parent | 2638fdb4f934be96b7c798dbac38ea5ab8a6374a (diff) |
refactor: Fix remaining clang-tidy performance-unnecessary-copy-initialization errors
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/validation_block_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/validation_block_tests.cpp b/src/test/validation_block_tests.cpp index f5c4204c55..f3bc8e7139 100644 --- a/src/test/validation_block_tests.cpp +++ b/src/test/validation_block_tests.cpp @@ -181,7 +181,7 @@ BOOST_AUTO_TEST_CASE(processnewblock_signals_ordering) bool ignored; FastRandomContext insecure; for (int i = 0; i < 1000; i++) { - auto block = blocks[insecure.randrange(blocks.size() - 1)]; + const auto& block = blocks[insecure.randrange(blocks.size() - 1)]; Assert(m_node.chainman)->ProcessNewBlock(block, true, true, &ignored); } |