diff options
author | alex-ersh <alex-ersh@yandex-team.com> | 2022-12-23 13:32:06 +0300 |
---|---|---|
committer | alex-ersh <alex-ersh@yandex-team.com> | 2022-12-23 13:32:06 +0300 |
commit | 2117177a510d6273beafd9c7c1b505ecd3c84ecb (patch) | |
tree | 247bee252ba2a611ad7a69c52373a055562fe322 /library | |
parent | 66fd5778789f2d694e7f498a0aa0b5c855af8cfb (diff) | |
download | ydb-2117177a510d6273beafd9c7c1b505ecd3c84ecb.tar.gz |
. move strings instead of copy
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/protobuf/json/json2proto.cpp | 4 |
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 |