aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2020-10-19 10:17:46 +0200
committerGravatar GitHub <noreply@github.com> 2020-10-19 01:17:46 -0700
commit1e7de3b536c974327513d17f9aee156d93030825 (patch)
treefb5885e8fbbbfdd51d5d9efcc53c597a41b2fa1d /Source/Diagnostics/ParticleDiag/ParticleDiag.cpp
parent1f8f4f74adf7d460c593752a83e3574cc5cc0589 (diff)
downloadWarpX-1e7de3b536c974327513d17f9aee156d93030825.tar.gz
WarpX-1e7de3b536c974327513d17f9aee156d93030825.tar.zst
WarpX-1e7de3b536c974327513d17f9aee156d93030825.zip
Replace wherever possible '.reset(new' with '= make_unique' (#1429)
* replace wherever possible .reset(new with = make_unique * fixed bug * fixed bug * revert WarpXOpenPMD.cpp to the original version * removed another .reset(new
Diffstat (limited to 'Source/Diagnostics/ParticleDiag/ParticleDiag.cpp')
-rw-r--r--Source/Diagnostics/ParticleDiag/ParticleDiag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp b/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp
index 9a9fe2055..b6219ba55 100644
--- a/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp
+++ b/Source/Diagnostics/ParticleDiag/ParticleDiag.cpp
@@ -74,7 +74,7 @@ ParticleDiag::ParticleDiag(std::string diag_name, std::string name, WarpXParticl
std::string function_string = "";
Store_parserString(pp,"plot_filter_function(t,x,y,z,ux,uy,uz)",
function_string);
- m_particle_filter_parser.reset(new ParserWrapper<7>(
- makeParser(function_string,{"t","x","y","z","ux","uy","uz"})));
+ m_particle_filter_parser = std::make_unique<ParserWrapper<7>>(
+ makeParser(function_string,{"t","x","y","z","ux","uy","uz"}));
}
}