diff options
author | selsta <selsta@sent.at> | 2021-04-27 05:21:16 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-04-27 05:30:27 +0200 |
commit | 451b5a510e115b450e383007c0d09deccb0d333b (patch) | |
tree | ba230bacc63061c25d7ed9bb34c17fe787c4dcde /tests/unit_tests/json_serialization.cpp | |
parent | Merge pull request #7669 (diff) | |
download | monero-451b5a510e115b450e383007c0d09deccb0d333b.tar.xz |
clang: fix -Wrange-loop-analysis warnings
Diffstat (limited to '')
-rw-r--r-- | tests/unit_tests/json_serialization.cpp | 2 |
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); |