Skip to content

Commit 28f35f7

Browse files
authored
IGNIETFERRO-2094: do not use a temporary string to construct an empty TStringBuf (#12835)
1 parent d2e4bb8 commit 28f35f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ydb/core/control/immediate_control_board_actor_ut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ struct THttpRequest : NMonitoring::IHttpRequest {
275275
}
276276

277277
TStringBuf GetPostContent() const override {
278-
return TString();
278+
return TStringBuf();
279279
}
280280

281281
HTTP_METHOD GetMethod() const override {

ydb/core/persqueue/ut/counters_ut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct THttpRequest : NMonitoring::IHttpRequest {
5656
}
5757

5858
TStringBuf GetPostContent() const override {
59-
return TString();
59+
return TStringBuf();
6060
}
6161

6262
HTTP_METHOD GetMethod() const override {

0 commit comments

Comments
 (0)