From 451b5a510e115b450e383007c0d09deccb0d333b Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 27 Apr 2021 05:21:16 +0200 Subject: clang: fix -Wrange-loop-analysis warnings --- src/serialization/json_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/serialization') 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::value, void>::type t static_assert(!std::is_same::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(); } -- cgit v1.2.3