diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:57:32 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:57:32 -0500 |
commit | c1a1f2a6ea63b43630d87a095f6984643de41634 (patch) | |
tree | 48fd2dafaebf7a67044d254649d1fb7fd6346d04 /src | |
parent | Merge pull request #7686 (diff) | |
parent | clang: fix -Wrange-loop-analysis warnings (diff) | |
download | monero-c1a1f2a6ea63b43630d87a095f6984643de41634.tar.xz |
Merge pull request #7688
451b5a5 clang: fix -Wrange-loop-analysis warnings (selsta)
Diffstat (limited to 'src')
-rw-r--r-- | src/serialization/json_object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialization/json_object.h b/src/serialization/json_object.h index de14c8911..35ea990b3 100644 --- a/src/serialization/json_object.h +++ b/src/serialization/json_object.h @@ -365,7 +365,7 @@ inline typename std::enable_if<sfinae::is_vector_like<Vec>::value, void>::type t static_assert(!std::is_same<value_type, unsigned char>::value, "encoding an array of unsigned char is faster as hex"); dest.StartArray(); - for (const auto& t : vec) + for (auto t : vec) toJsonValue(dest, t); dest.EndArray(); } |