aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/yson_string
diff options
context:
space:
mode:
authorsavrus <savrus@yandex-team.com>2022-10-07 11:08:40 +0300
committersavrus <savrus@yandex-team.com>2022-10-07 11:08:40 +0300
commitab78e5e98f7093c7b8d5307f676067a08f537506 (patch)
tree0ac13e43e0f9c197cf28bef977ff1f40121c1188 /library/cpp/yt/yson_string
parent53354011eff56242aedc542ce6884d5b7ca3beb8 (diff)
downloadydb-ab78e5e98f7093c7b8d5307f676067a08f537506.tar.gz
Memory reference tracking restyling
Diffstat (limited to 'library/cpp/yt/yson_string')
-rw-r--r--library/cpp/yt/yson_string/string.cpp6
-rw-r--r--library/cpp/yt/yson_string/string.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/yt/yson_string/string.cpp b/library/cpp/yt/yson_string/string.cpp
index 87aa08cce4..c92d4d6e42 100644
--- a/library/cpp/yt/yson_string/string.cpp
+++ b/library/cpp/yt/yson_string/string.cpp
@@ -72,7 +72,7 @@ TYsonString::TYsonString(const TYsonStringBuf& ysonStringBuf)
{
if (ysonStringBuf) {
struct TCapturedYsonStringPayload
- : public ISharedRangeHolder
+ : public TSharedRangeHolder
, public TWithExtraSpace<TCapturedYsonStringPayload>
{
char* GetData()
@@ -155,7 +155,7 @@ TString TYsonString::ToString() const
[] (const TNullPayload&) -> TString {
YT_ABORT();
},
- [&] (const ISharedRangeHolderPtr&) {
+ [&] (const TSharedRangeHolderPtr&) {
return TString(AsStringBuf());
},
[] (const TString& payload) {
@@ -170,7 +170,7 @@ TSharedRef TYsonString::ToSharedRef() const
[] (const TNullPayload&) -> TSharedRef {
YT_ABORT();
},
- [&] (const ISharedRangeHolderPtr& holder) {
+ [&] (const TSharedRangeHolderPtr& holder) {
return TSharedRef(Begin_, Size_, holder);
},
[] (const TString& payload) {
diff --git a/library/cpp/yt/yson_string/string.h b/library/cpp/yt/yson_string/string.h
index 413851acf4..29845b70ae 100644
--- a/library/cpp/yt/yson_string/string.h
+++ b/library/cpp/yt/yson_string/string.h
@@ -111,7 +111,7 @@ private:
struct TNullPayload
{ };
- std::variant<TNullPayload, ISharedRangeHolderPtr, TString> Payload_;
+ std::variant<TNullPayload, TSharedRangeHolderPtr, TString> Payload_;
const char* Begin_;
ui64 Size_ : 56;