From: Luca Heltai Date: Thu, 11 Jun 2020 07:53:56 +0000 (+0200) Subject: Replace new with std::make_unique. X-Git-Tag: v9.3.0-rc1~1390^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25aa73f657193a4446b434f00bb434b2bc564055;p=dealii.git Replace new with std::make_unique. --- 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()