aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLőrinc <pap.lorinc@gmail.com>2024-11-24 19:20:11 +0100
committerLőrinc <pap.lorinc@gmail.com>2024-11-25 20:11:54 +0100
commit3305972f7bfd78181566e4297891c2dd7cae0f2b (patch)
treed82633b843aaee6daa946339ff994dc6f033295d /src/test
parent2638fdb4f934be96b7c798dbac38ea5ab8a6374a (diff)
refactor: Fix remaining clang-tidy performance-unnecessary-copy-initialization errors
Diffstat (limited to 'src/test')
-rw-r--r--src/test/validation_block_tests.cpp2
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);
}