aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authormonnoroch <monnoroch@yandex-team.ru>2022-02-10 16:50:35 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:35 +0300
commitff230fa56fa52d83a67896163c937c432faabff1 (patch)
tree4fca95e9c3a81157609ba9c01c82e4205f2cdc19 /library/cpp
parent6c28d571885436fe17efe87ca39884f80852bb8c (diff)
downloadydb-ff230fa56fa52d83a67896163c937c432faabff1.tar.gz
Restoring authorship annotation for <monnoroch@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/protobuf/json/json2proto.h10
-rw-r--r--library/cpp/protobuf/json/proto2json.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/protobuf/json/json2proto.h b/library/cpp/protobuf/json/json2proto.h
index 4c33498dfa3..2ae77cad2c1 100644
--- a/library/cpp/protobuf/json/json2proto.h
+++ b/library/cpp/protobuf/json/json2proto.h
@@ -6,7 +6,7 @@
#include <library/cpp/json/json_reader.h>
#include <library/cpp/json/json_value.h>
-#include <util/stream/input.h>
+#include <util/stream/input.h>
#include <util/stream/str.h>
#include <util/stream/mem.h>
@@ -15,7 +15,7 @@ namespace google {
class Message;
}
}
-
+
namespace NProtobufJson {
struct TJson2ProtoConfig {
using TSelf = TJson2ProtoConfig;
@@ -198,21 +198,21 @@ namespace NProtobufJson {
readerConfig.DontValidateUtf8 = true;
return Json2Proto<T>(in, readerConfig, config);
}
-
+
/// @throw yexception
template <typename T>
T Json2Proto(const TString& value, const TJson2ProtoConfig& config = TJson2ProtoConfig()) {
TStringInput in(value);
return Json2Proto<T>(in, config);
}
-
+
/// @throw yexception
template <typename T>
T Json2Proto(const TStringBuf& value, const TJson2ProtoConfig& config = TJson2ProtoConfig()) {
TMemoryInput in(value);
return Json2Proto<T>(in, config);
}
-
+
/// @throw yexception
template <typename T>
T Json2Proto(const char* ptr, const TJson2ProtoConfig& config = TJson2ProtoConfig()) {
diff --git a/library/cpp/protobuf/json/proto2json.cpp b/library/cpp/protobuf/json/proto2json.cpp
index 3d76a916867..5c79f372cb6 100644
--- a/library/cpp/protobuf/json/proto2json.cpp
+++ b/library/cpp/protobuf/json/proto2json.cpp
@@ -53,4 +53,4 @@ namespace NProtobufJson {
return res;
}
-}
+}