mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
use std::make_unique where applicable
This commit is contained in:
@@ -167,7 +167,7 @@ AdaptiveSimulatorTimer& AdaptiveSimulatorTimer::operator++ ()
|
||||
std::unique_ptr< SimulatorTimerInterface >
|
||||
AdaptiveSimulatorTimer::clone() const
|
||||
{
|
||||
return std::unique_ptr< SimulatorTimerInterface > (new AdaptiveSimulatorTimer( *this ));
|
||||
return std::make_unique<AdaptiveSimulatorTimer>(*this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user