diff options
author | babenko <babenko@yandex-team.com> | 2025-02-22 17:28:25 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2025-02-22 17:48:29 +0300 |
commit | 59afaa0cb7cd89146dd10f5446256afcce33bd0e (patch) | |
tree | 38d3c46bcba8da7c3b8ffc6b818695bc6b62d532 /library/cpp/yt/string/string.cpp | |
parent | 1d9cc117e33b162a5247032e175ed7ea26971437 (diff) | |
download | ydb-59afaa0cb7cd89146dd10f5446256afcce33bd0e.tar.gz |
YT-22593: More trivial TString->std::string migrations
[nodiff:runtime]
commit_hash:1ba799aed1703ab7c6304b6da7090b3337f768dd
Diffstat (limited to 'library/cpp/yt/string/string.cpp')
-rw-r--r-- | library/cpp/yt/string/string.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/yt/string/string.cpp b/library/cpp/yt/string/string.cpp index b9c3236134..ed51f453fb 100644 --- a/library/cpp/yt/string/string.cpp +++ b/library/cpp/yt/string/string.cpp @@ -359,7 +359,7 @@ TStringBuf FormatBool(bool value) //////////////////////////////////////////////////////////////////////////////// -void TruncateStringInplace(TString* string, int lengthLimit, TStringBuf truncatedSuffix) +void TruncateStringInplace(std::string* string, int lengthLimit, TStringBuf truncatedSuffix) { if (std::ssize(*string) > lengthLimit) { string->resize(lengthLimit); @@ -367,7 +367,7 @@ void TruncateStringInplace(TString* string, int lengthLimit, TStringBuf truncate } } -TString TruncateString(TString string, int lengthLimit, TStringBuf truncatedSuffix) +std::string TruncateString(std::string string, int lengthLimit, TStringBuf truncatedSuffix) { TruncateStringInplace(&string, lengthLimit, truncatedSuffix); return string; |