diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/messagebus/key_value_printer.cpp | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/key_value_printer.cpp')
-rw-r--r-- | library/cpp/messagebus/key_value_printer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/messagebus/key_value_printer.cpp b/library/cpp/messagebus/key_value_printer.cpp index c8592145c7..41c2a19f57 100644 --- a/library/cpp/messagebus/key_value_printer.cpp +++ b/library/cpp/messagebus/key_value_printer.cpp @@ -2,7 +2,7 @@ #include <util/stream/format.h> -TKeyValuePrinter::TKeyValuePrinter(const TString& sep) +TKeyValuePrinter::TKeyValuePrinter(const TString& sep) : Sep(sep) { } @@ -10,15 +10,15 @@ TKeyValuePrinter::TKeyValuePrinter(const TString& sep) TKeyValuePrinter::~TKeyValuePrinter() { } -void TKeyValuePrinter::AddRowImpl(const TString& key, const TString& value, bool alignLeft) { +void TKeyValuePrinter::AddRowImpl(const TString& key, const TString& value, bool alignLeft) { Keys.push_back(key); Values.push_back(value); AlignLefts.push_back(alignLeft); } -TString TKeyValuePrinter::PrintToString() const { +TString TKeyValuePrinter::PrintToString() const { if (Keys.empty()) { - return TString(); + return TString(); } size_t keyWidth = 0; |