Skip to content

Commit 605a8a3

Browse files
author
babenko
committed
YT-22593: TString -> std::string for method names in TMethodDescriptor
commit_hash:751ec5b56766a9f467fe3430bd8824392f605d44
1 parent d24e4d7 commit 605a8a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

yt/yt/core/rpc/client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,8 @@ TServiceDescriptor& TServiceDescriptor::SetAcceptsBaggage(bool value)
748748

749749
////////////////////////////////////////////////////////////////////////////////
750750

751-
TMethodDescriptor::TMethodDescriptor(const TString& methodName)
752-
: MethodName(methodName)
751+
TMethodDescriptor::TMethodDescriptor(std::string methodName)
752+
: MethodName(std::move(methodName))
753753
{ }
754754

755755
TMethodDescriptor& TMethodDescriptor::SetMultiplexingBand(EMultiplexingBand value)

yt/yt/core/rpc/client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,11 @@ struct TServiceDescriptor
444444

445445
struct TMethodDescriptor
446446
{
447-
TString MethodName;
447+
std::string MethodName;
448448
EMultiplexingBand MultiplexingBand = EMultiplexingBand::Default;
449449
bool StreamingEnabled = false;
450450

451-
explicit TMethodDescriptor(const TString& methodName);
451+
explicit TMethodDescriptor(std::string methodName);
452452

453453
TMethodDescriptor& SetMultiplexingBand(EMultiplexingBand value);
454454
TMethodDescriptor& SetStreamingEnabled(bool value);

0 commit comments

Comments
 (0)