use std::make_unique where applicable

This commit is contained in:
Arne Morten Kvarving
2020-09-02 15:35:39 +02:00
parent 4b45623333
commit 7305f84351
9 changed files with 14 additions and 14 deletions
@@ -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);
}