]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace new with std::make_unique.
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 11 Jun 2020 07:53:56 +0000 (09:53 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 11 Jun 2020 07:53:56 +0000 (09:53 +0200)
source/particles/particle_handler.cc

index 67e0e079fd7d8355cec9b971786e003220546c12..bf5e16f8b06d807a4522e7a8fb10dc109403e71b 100644 (file)
@@ -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<PropertyPool>(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<PropertyPool>(n_properties))
     , size_callback()
     , store_callback()
     , load_callback()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.