summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/init.cpp
diff options
context:
space:
mode:
authorhiddenpath <[email protected]>2024-12-24 20:33:51 +0300
committerhiddenpath <[email protected]>2024-12-24 21:37:04 +0300
commit5316c104d58281584317972b3b4a1fc19dbbef45 (patch)
tree31e76ce65193995b23a380fcc9dd94bfcf11b4ad /yt/cpp/mapreduce/client/init.cpp
parent4aba061d7839ceee149b6dcf222aa348bf430c44 (diff)
Migrate THolder to std::unique_ptr in yt/cpp/mapreduce internals
commit_hash:99bfa41ffc42ed3622660b15d7ce68802e53f902
Diffstat (limited to 'yt/cpp/mapreduce/client/init.cpp')
-rw-r--r--yt/cpp/mapreduce/client/init.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt/cpp/mapreduce/client/init.cpp b/yt/cpp/mapreduce/client/init.cpp
index 6121952f868..78c92ee8831 100644
--- a/yt/cpp/mapreduce/client/init.cpp
+++ b/yt/cpp/mapreduce/client/init.cpp
@@ -219,11 +219,11 @@ void ExecJob(int argc, const char** argv, const TInitializeOptions& options)
NDetail::OutputTableCount = static_cast<i64>(outputTableCount);
- THolder<IInputStream> jobStateStream;
+ std::unique_ptr<IInputStream> jobStateStream;
if (hasState) {
- jobStateStream = MakeHolder<TIFStream>("jobstate");
+ jobStateStream = std::make_unique<TIFStream>("jobstate");
} else {
- jobStateStream = MakeHolder<TBufferStream>(0);
+ jobStateStream = std::make_unique<TBufferStream>(0);
}
int ret = 1;