From 25aa73f657193a4446b434f00bb434b2bc564055 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 11 Jun 2020 09:53:56 +0200 Subject: [PATCH] Replace new with std::make_unique. --- source/particles/particle_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index 67e0e079fd..bf5e16f8b0 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -92,7 +92,7 @@ namespace Particles , global_number_of_particles(0) , global_max_particles_per_cell(0) , next_free_particle_index(0) - , property_pool(new PropertyPool(0)) + , property_pool(std::make_unique(0)) , size_callback() , store_callback() , load_callback() @@ -113,7 +113,7 @@ namespace Particles , global_number_of_particles(0) , global_max_particles_per_cell(0) , next_free_particle_index(0) - , property_pool(new PropertyPool(n_properties)) + , property_pool(std::make_unique(n_properties)) , size_callback() , store_callback() , load_callback() -- 2.39.5