aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-05-12 16:57:32 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-05-12 16:57:32 -0500
commitc1a1f2a6ea63b43630d87a095f6984643de41634 (patch)
tree48fd2dafaebf7a67044d254649d1fb7fd6346d04 /tests
parentMerge pull request #7686 (diff)
parentclang: fix -Wrange-loop-analysis warnings (diff)
downloadmonero-c1a1f2a6ea63b43630d87a095f6984643de41634.tar.xz
Merge pull request #7688
451b5a5 clang: fix -Wrange-loop-analysis warnings (selsta)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/json_serialization.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/json_serialization.cpp b/tests/unit_tests/json_serialization.cpp
index f76199e57..9fa589139 100644
--- a/tests/unit_tests/json_serialization.cpp
+++ b/tests/unit_tests/json_serialization.cpp
@@ -51,7 +51,7 @@ namespace test
if (!cryptonote::find_tx_extra_field_by_type(extra_fields, key_field))
throw std::runtime_error{"invalid transaction"};
- for (auto const& input : boost::adaptors::index(source.vout))
+ for (auto const input : boost::adaptors::index(source.vout))
{
source_amount += input.value().amount;
auto const& key = boost::get<cryptonote::txout_to_key>(input.value().target);