mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ParallelFileMerger: prefer std::make_unique
This commit is contained in:
@@ -43,12 +43,12 @@ ParallelFileMerger::ParallelFileMerger(const fs::path& output_dir,
|
||||
{
|
||||
auto debugPath = output_dir;
|
||||
debugPath /= (deckname + ".DBG");
|
||||
debugStream_.reset(new std::ofstream(debugPath,
|
||||
std::ofstream::app));
|
||||
debugStream_ = std::make_unique<std::ofstream>(debugPath,
|
||||
std::ofstream::app);
|
||||
auto logPath = output_dir;
|
||||
logPath /= ( deckname + ".PRT");
|
||||
logStream_.reset(new std::ofstream(logPath,
|
||||
std::ofstream::app));
|
||||
logStream_ = std::make_unique<std::ofstream>(logPath,
|
||||
std::ofstream::app);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user