From 253920bc134cff20132831cefc02669ef9290721 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 10 Feb 2018 16:48:13 +0100 Subject: [PATCH] Use make_unique/shared in particles --- source/particles/particle_handler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index 7f8d5d43ce..c91e6f4ad8 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -15,6 +15,7 @@ #include +#include #include #include @@ -81,7 +82,7 @@ namespace Particles mapping = &mapp; // Create the memory pool that will store all particle properties - property_pool.reset(new PropertyPool(n_properties)); + property_pool = std_cxx14::make_unique(n_properties); } -- 2.39.5