aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authora-square <a-square@yandex-team.ru>2022-02-10 16:50:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:24 +0300
commita01c1f7b71b4422f01b11d9ea45bfd88e228c968 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp
parent34f3f9bd7972f67d913075206081554a3e39a0de (diff)
downloadydb-a01c1f7b71b4422f01b11d9ea45bfd88e228c968.tar.gz
Restoring authorship annotation for <a-square@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/json/json_writer.h32
-rw-r--r--library/cpp/json/ut/json_writer_ut.cpp4
2 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/json/json_writer.h b/library/cpp/json/json_writer.h
index 006bfe5325..c7f5c9499a 100644
--- a/library/cpp/json/json_writer.h
+++ b/library/cpp/json/json_writer.h
@@ -156,22 +156,22 @@ namespace NJson {
// nothing to do
}
- void WriteKey(const TStringBuf key) {
- Buf.WriteKey(key);
- }
-
- void WriteKey(const unsigned char* key) {
- WriteKey((const char*)key);
- }
-
- void WriteKey(const char* key) {
- WriteKey(TStringBuf{key});
- }
-
- void WriteKey(const TString& key) {
- WriteKey(TStringBuf{key});
- }
-
+ void WriteKey(const TStringBuf key) {
+ Buf.WriteKey(key);
+ }
+
+ void WriteKey(const unsigned char* key) {
+ WriteKey((const char*)key);
+ }
+
+ void WriteKey(const char* key) {
+ WriteKey(TStringBuf{key});
+ }
+
+ void WriteKey(const TString& key) {
+ WriteKey(TStringBuf{key});
+ }
+
void WriteKey(const std::string& key) {
WriteKey(TStringBuf{key});
}
diff --git a/library/cpp/json/ut/json_writer_ut.cpp b/library/cpp/json/ut/json_writer_ut.cpp
index e43d9d2caa..ca11d34dad 100644
--- a/library/cpp/json/ut/json_writer_ut.cpp
+++ b/library/cpp/json/ut/json_writer_ut.cpp
@@ -16,8 +16,8 @@ Y_UNIT_TEST_SUITE(TJsonWriterTest) {
TJsonWriter json(&out, false);
json.OpenMap();
json.Write("key1", (ui16)1);
- json.WriteKey("key2");
- json.Write((i32)2);
+ json.WriteKey("key2");
+ json.Write((i32)2);
json.Write("key3", (ui64)3);
UNIT_ASSERT(out.Empty());