From f3e47ef3b7d44299f6d20023573d2f81728514f7 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Mon, 19 Oct 2020 14:49:07 +0200 Subject: [PATCH] Switch to make_unqiue --- src/Time/light.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 5c8fd4f0c..83aa12d83 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -59,20 +59,20 @@ void FGLight::init () { // initialize ambient, diffuse and specular tables SGPath ambient_path = path; ambient_path.append( "Lighting/ambient" ); - _ambient_tbl = std::unique_ptr(new SGInterpTable( ambient_path )); + _ambient_tbl = std::make_unique( ambient_path ); SGPath diffuse_path = path; diffuse_path.append( "Lighting/diffuse" ); - _diffuse_tbl = std::unique_ptr(new SGInterpTable( diffuse_path )); + _diffuse_tbl = std::make_unique( diffuse_path ); SGPath specular_path = path; specular_path.append( "Lighting/specular" ); - _specular_tbl = std::unique_ptr(new SGInterpTable( specular_path )); + _specular_tbl = std::make_unique( specular_path ); // initialize sky table SGPath sky_path = path; sky_path.append( "Lighting/sky" ); - _sky_tbl = std::unique_ptr(new SGInterpTable( sky_path )); + _sky_tbl = std::make_unique( sky_path ); // update all solar system body positions of interest globals->get_event_mgr()->addTask("updateObjects", this,