aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorA. Maitland Bottoms <bottoms@debian.org>2021-10-20 10:14:05 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-10-22 06:35:44 -0700
commit170c3767da67ea7ad0f0103658d17590b080fe67 (patch)
treee5873bdd856cf4c6ff03a07e7433ef3b7d5c75f6 /host
parentf665c585ee9ea7beec8de94a4d402190225ccf23 (diff)
downloaduhd-170c3767da67ea7ad0f0103658d17590b080fe67.tar.gz
uhd-170c3767da67ea7ad0f0103658d17590b080fe67.tar.bz2
uhd-170c3767da67ea7ad0f0103658d17590b080fe67.zip
tests: Use reference type to prevent copy
Thanks to mait for the fix!
Diffstat (limited to 'host')
-rw-r--r--host/tests/blockdef_test.cpp2
1 files changed, 1 insertions, 1 deletions
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);