aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authoralex-ersh <alex-ersh@yandex-team.com>2022-12-23 13:32:06 +0300
committeralex-ersh <alex-ersh@yandex-team.com>2022-12-23 13:32:06 +0300
commit2117177a510d6273beafd9c7c1b505ecd3c84ecb (patch)
tree247bee252ba2a611ad7a69c52373a055562fe322 /library
parent66fd5778789f2d694e7f498a0aa0b5c855af8cfb (diff)
downloadydb-2117177a510d6273beafd9c7c1b505ecd3c84ecb.tar.gz
. move strings instead of copy
Diffstat (limited to 'library')
-rw-r--r--library/cpp/protobuf/json/json2proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/protobuf/json/json2proto.cpp b/library/cpp/protobuf/json/json2proto.cpp
index 93424a5a8e..be8682e239 100644
--- a/library/cpp/protobuf/json/json2proto.cpp
+++ b/library/cpp/protobuf/json/json2proto.cpp
@@ -152,9 +152,9 @@ JsonString2Field(const NJson::TJsonValue& json,
}
if (field.is_repeated())
- reflection->AddString(&proto, &field, value);
+ reflection->AddString(&proto, &field, std::move(value));
else
- reflection->SetString(&proto, &field, value);
+ reflection->SetString(&proto, &field, std::move(value));
}
static bool