From 7138b0d29d8889bf7d7f4b5f525500ef90efe116 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Tue, 17 Jan 2023 10:11:52 +1000 Subject: [PATCH] fixup: constref instead of copy --- src/test/ctvhash_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/ctvhash_tests.cpp b/src/test/ctvhash_tests.cpp index 8981ea7d4bc79b..781d02bcbac11a 100644 --- a/src/test/ctvhash_tests.cpp +++ b/src/test/ctvhash_tests.cpp @@ -30,7 +30,7 @@ BOOST_AUTO_TEST_CASE(ctvhash_from_data) UniValue tests = read_json(std::string(json_tests::ctvhash, json_tests::ctvhash + sizeof(json_tests::ctvhash))); for (unsigned int idx = 0; idx < tests.size(); idx++) { - UniValue test = tests[idx]; + const UniValue& test = tests[idx]; std::string strTest = test.write(); // comment if (test.isStr())