diff options
author | max42 <max42@yandex-team.ru> | 2022-02-10 16:47:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:51 +0300 |
commit | 9988f7c537b40605e1a0aaae2977d5f540425b83 (patch) | |
tree | a4f3497f66e2dcd82d0f7ae7573acd1320d1bc78 /library/cpp/yt/yson_string | |
parent | 0a579de32b745908473b2cea7c5cd5540bc801f0 (diff) | |
download | ydb-9988f7c537b40605e1a0aaae2977d5f540425b83.tar.gz |
Restoring authorship annotation for <max42@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/yson_string')
-rw-r--r-- | library/cpp/yt/yson_string/string.cpp | 8 | ||||
-rw-r--r-- | library/cpp/yt/yson_string/string.h | 18 |
2 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/yt/yson_string/string.cpp b/library/cpp/yt/yson_string/string.cpp index 99d45e8616..5dcd32f864 100644 --- a/library/cpp/yt/yson_string/string.cpp +++ b/library/cpp/yt/yson_string/string.cpp @@ -38,10 +38,10 @@ TYsonStringBuf::TYsonStringBuf(TStringBuf data, EYsonType type) , Null_(false) { } -TYsonStringBuf::TYsonStringBuf(const char* data, EYsonType type) - : TYsonStringBuf(TStringBuf(data), type) -{ } - +TYsonStringBuf::TYsonStringBuf(const char* data, EYsonType type) + : TYsonStringBuf(TStringBuf(data), type) +{ } + TYsonStringBuf::operator bool() const { return !Null_; diff --git a/library/cpp/yt/yson_string/string.h b/library/cpp/yt/yson_string/string.h index e13af37a6d..612aa6248c 100644 --- a/library/cpp/yt/yson_string/string.h +++ b/library/cpp/yt/yson_string/string.h @@ -21,23 +21,23 @@ public: //! Constructs an instance from TYsonString. TYsonStringBuf(const TYsonString& ysonString); - //! Constructs a non-null instance with given type and content. + //! Constructs a non-null instance with given type and content. explicit TYsonStringBuf( const TString& data, EYsonType type = EYsonType::Node); - //! Constructs a non-null instance with given type and content. + //! Constructs a non-null instance with given type and content. explicit TYsonStringBuf( TStringBuf data, EYsonType type = EYsonType::Node); - //! Constructs a non-null instance with given type and content - //! (without this overload there is no way to construct TYsonStringBuf from - //! string literal). - explicit TYsonStringBuf( - const char* data, - EYsonType type = EYsonType::Node); - + //! Constructs a non-null instance with given type and content + //! (without this overload there is no way to construct TYsonStringBuf from + //! string literal). + explicit TYsonStringBuf( + const char* data, + EYsonType type = EYsonType::Node); + //! Returns |true| if the instance is not null. explicit operator bool() const; |