summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbabenko <[email protected]>2025-05-11 17:01:47 +0300
committerbabenko <[email protected]>2025-05-11 17:14:04 +0300
commitead6b02b8601e1dcc4e3061761100a763454d7d0 (patch)
treec28d94b4c1860de5c03f0bad87e19e6b4a1e9a19
parentf2dff69a3e31e797bcbd219582b4e9827c800c21 (diff)
YT-22593: Replace more TStrings with std::string master
commit_hash:d1f379976647e8cd63477ba127f38c4cdad0e8c5
-rw-r--r--yt/yt/client/api/helpers.cpp2
-rw-r--r--yt/yt/client/api/helpers.h2
-rw-r--r--yt/yt/client/security_client/public.cpp2
-rw-r--r--yt/yt/client/security_client/public.h4
4 files changed, 6 insertions, 4 deletions
diff --git a/yt/yt/client/api/helpers.cpp b/yt/yt/client/api/helpers.cpp
index ab2b06d7db0..c88ed8c99a6 100644
--- a/yt/yt/client/api/helpers.cpp
+++ b/yt/yt/client/api/helpers.cpp
@@ -8,7 +8,7 @@ namespace NYT::NApi {
////////////////////////////////////////////////////////////////////////////////
-void ValidateMaintenanceComment(const TString& comment)
+void ValidateMaintenanceComment(TStringBuf comment)
{
constexpr int MaxMaintenanceCommentLength = 512;
diff --git a/yt/yt/client/api/helpers.h b/yt/yt/client/api/helpers.h
index d9eff87d4d3..ab1b688b806 100644
--- a/yt/yt/client/api/helpers.h
+++ b/yt/yt/client/api/helpers.h
@@ -6,7 +6,7 @@ namespace NYT::NApi {
////////////////////////////////////////////////////////////////////////////////
-void ValidateMaintenanceComment(const TString& comment);
+void ValidateMaintenanceComment(TStringBuf comment);
////////////////////////////////////////////////////////////////////////////////
diff --git a/yt/yt/client/security_client/public.cpp b/yt/yt/client/security_client/public.cpp
index 83fcf6ad11c..8609afd5249 100644
--- a/yt/yt/client/security_client/public.cpp
+++ b/yt/yt/client/security_client/public.cpp
@@ -5,7 +5,7 @@ namespace NYT::NSecurityClient {
////////////////////////////////////////////////////////////////////////////////
const TString RootAccountName("root");
-const TString RootAccountCypressPath("//sys/account_tree");
+const NYPath::TYPath RootAccountCypressPath("//sys/account_tree");
const TString TmpAccountName("tmp");
const TString SysAccountName("sys");
const TString IntermediateAccountName("intermediate");
diff --git a/yt/yt/client/security_client/public.h b/yt/yt/client/security_client/public.h
index 420aaab50b0..c93bf239277 100644
--- a/yt/yt/client/security_client/public.h
+++ b/yt/yt/client/security_client/public.h
@@ -4,6 +4,8 @@
#include <yt/yt/core/rpc/public.h>
+#include <yt/yt/core/ypath/public.h>
+
namespace NYT::NSecurityClient {
////////////////////////////////////////////////////////////////////////////////
@@ -17,7 +19,7 @@ using TProxyRoleId = NObjectClient::TObjectId;
using TAccountResourceUsageLeaseId = NObjectClient::TObjectId;
extern const TString RootAccountName;
-extern const TString RootAccountCypressPath;
+extern const NYPath::TYPath RootAccountCypressPath;
extern const TString TmpAccountName;
extern const TString SysAccountName;
extern const TString IntermediateAccountName;