aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvadim-xd <vadim-xd@yandex-team.com>2023-10-18 01:10:44 +0300
committervadim-xd <vadim-xd@yandex-team.com>2023-10-18 01:33:52 +0300
commit5effc63f93f286bf6177da673934ce1cfbd255df (patch)
tree026a6717027008793084882d20fdde204207625f
parent35f4b62b12d72e4f7147e179e4e5f78a291acf60 (diff)
downloadydb-5effc63f93f286bf6177da673934ce1cfbd255df.tar.gz
Remove copy of json map
-rw-r--r--library/cpp/protobuf/json/json2proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/protobuf/json/json2proto.cpp b/library/cpp/protobuf/json/json2proto.cpp
index 0a623736cc..b4a788a270 100644
--- a/library/cpp/protobuf/json/json2proto.cpp
+++ b/library/cpp/protobuf/json/json2proto.cpp
@@ -446,7 +446,7 @@ Json2RepeatedField(const NJson::TJsonValue& json,
Y_ASSERT(!!reflection);
if (isMap) {
- const THashMap<TString, NJson::TJsonValue> jsonMap = fieldJson.GetMap();
+ const THashMap<TString, NJson::TJsonValue>& jsonMap = fieldJson.GetMap();
for (const auto& x : jsonMap) {
const TString& key = x.first;
const NJson::TJsonValue& jsonValue = x.second;