diff options
author | vi002 <vi002@yandex-team.ru> | 2022-02-10 16:49:43 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:43 +0300 |
commit | 9bd40d940d6613238d700ad86a33e7dcd7ef49c9 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/json2proto.cpp | |
parent | ada28932b0745610cbe6b7e1820a3bf661dd5d10 (diff) | |
download | ydb-9bd40d940d6613238d700ad86a33e7dcd7ef49c9.tar.gz |
Restoring authorship annotation for <vi002@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.cpp')
-rw-r--r-- | library/cpp/protobuf/json/json2proto.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/protobuf/json/json2proto.cpp b/library/cpp/protobuf/json/json2proto.cpp index e135d3b275..640c10f5a5 100644 --- a/library/cpp/protobuf/json/json2proto.cpp +++ b/library/cpp/protobuf/json/json2proto.cpp @@ -7,7 +7,7 @@ #include <google/protobuf/descriptor.h> #include <util/generic/hash.h> -#include <util/generic/maybe.h> +#include <util/generic/maybe.h> #include <util/string/ascii.h> #include <util/string/cast.h> @@ -265,7 +265,7 @@ Json2RepeatedFieldValue(const NJson::TJsonValue& jsonValue, const google::protobuf::FieldDescriptor& field, const NProtobufJson::TJson2ProtoConfig& config, const google::protobuf::Reflection* reflection, - const TMaybe<TString>& key = {}) { + const TMaybe<TString>& key = {}) { using namespace google::protobuf; switch (field.cpp_type()) { @@ -290,10 +290,10 @@ Json2RepeatedFieldValue(const NJson::TJsonValue& jsonValue, case FieldDescriptor::CPPTYPE_MESSAGE: { Message* innerProto = reflection->AddMessage(&proto, &field); Y_ASSERT(!!innerProto); - if (key.Defined()) { + if (key.Defined()) { const FieldDescriptor* keyField = innerProto->GetDescriptor()->FindFieldByName("key"); Y_ENSURE(keyField, "Map entry key field not found: " << field.name()); - SetKey(*innerProto, *keyField, *key); + SetKey(*innerProto, *keyField, *key); const FieldDescriptor* valueField = innerProto->GetDescriptor()->FindFieldByName("value"); Y_ENSURE(valueField, "Map entry value field not found."); |