diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:40 +0300 |
commit | 5d50718e66d9c037dc587a0211110b7d25a66185 (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /library/cpp/yt/yson_string | |
parent | a6a92afe03e02795227d2641b49819b687f088f8 (diff) | |
download | ydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/yson_string')
-rw-r--r-- | library/cpp/yt/yson_string/string.cpp | 24 | ||||
-rw-r--r-- | library/cpp/yt/yson_string/string.h | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/yt/yson_string/string.cpp b/library/cpp/yt/yson_string/string.cpp index 1322212650..99d45e8616 100644 --- a/library/cpp/yt/yson_string/string.cpp +++ b/library/cpp/yt/yson_string/string.cpp @@ -101,25 +101,25 @@ TYsonString::TYsonString( : TYsonString(TYsonStringBuf(data, type)) { } -#ifdef TSTRING_IS_STD_STRING +#ifdef TSTRING_IS_STD_STRING TYsonString::TYsonString( - const TString& data, + const TString& data, EYsonType type) - : TYsonString(TYsonStringBuf(data, type)) -{ } -#else -TYsonString::TYsonString( - const TString& data, - EYsonType type) -{ - // NOTE: CoW TString implementation is assumed - // Moving the payload MUST NOT invalidate its internal pointers + : TYsonString(TYsonStringBuf(data, type)) +{ } +#else +TYsonString::TYsonString( + const TString& data, + EYsonType type) +{ + // NOTE: CoW TString implementation is assumed + // Moving the payload MUST NOT invalidate its internal pointers Payload_ = data; Begin_ = data.data(); Size_ = data.length(); Type_ = type; } -#endif +#endif TYsonString::TYsonString( const TSharedRef& data, diff --git a/library/cpp/yt/yson_string/string.h b/library/cpp/yt/yson_string/string.h index adf2138564..e13af37a6d 100644 --- a/library/cpp/yt/yson_string/string.h +++ b/library/cpp/yt/yson_string/string.h @@ -76,9 +76,9 @@ public: EYsonType type = EYsonType::Node); //! Constructs an instance from TString. - //! Zero-copy for CoW TString: retains the reference to TString in payload. + //! Zero-copy for CoW TString: retains the reference to TString in payload. explicit TYsonString( - const TString& data, + const TString& data, EYsonType type = EYsonType::Node); //! Constructs an instance from TSharedRef. |