Skip to content

Commit 8e722e4

Browse files
committed
Remove unsafe copying
1 parent c152836 commit 8e722e4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ydb/core/debug_tools/operation_log.h

+2-5
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ class TOperationLog {
3737
}
3838
};
3939

40-
TOperationLog(const TOperationLog& other) = delete;
41-
TOperationLog& operator=(const TOperationLog& other) = delete;
42-
4340
TOperationLog(TOperationLog&& other) = default;
4441
TOperationLog& operator=(TOperationLog&& other) = default;
4542

@@ -49,9 +46,9 @@ class TOperationLog {
4946
}
5047
}
5148

52-
bool InitializeRecords(TString value = "Race occured, try again") {
49+
void InitializeRecords(TString value = "Race occured, try again") {
5350
for (auto& record : Records) {
54-
record.store(new TString(value))
51+
record.store(new TString(value));
5552
}
5653
}
5754

0 commit comments

Comments
 (0)