From 170c3767da67ea7ad0f0103658d17590b080fe67 Mon Sep 17 00:00:00 2001 From: "A. Maitland Bottoms" Date: Wed, 20 Oct 2021 10:14:05 -0500 Subject: tests: Use reference type to prevent copy Thanks to mait for the fix! --- host/tests/blockdef_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') diff --git a/host/tests/blockdef_test.cpp b/host/tests/blockdef_test.cpp index 7a663f514..a95cbdc00 100644 --- a/host/tests/blockdef_test.cpp +++ b/host/tests/blockdef_test.cpp @@ -24,7 +24,7 @@ BOOST_AUTO_TEST_CASE(test_lookup) {0x5CC0000000000000, "SchmidlCox"}}; std::cout << blocknames.size() << std::endl; - for (const auto block : blocknames) { + for (const auto& block : blocknames) { std::cout << "Testing " << block.second << " => " << str(boost::format("%016X") % block.first) << std::endl; auto block_definition = blockdef::make_from_noc_id(block.first); -- cgit v1.2.3