aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/MultiDiagnostics.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/MultiDiagnostics.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/MultiDiagnostics.cpp')
-rw-r--r--Source/Diagnostics/MultiDiagnostics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/MultiDiagnostics.cpp b/Source/Diagnostics/MultiDiagnostics.cpp
index d9300187e..554e823e8 100644
--- a/Source/Diagnostics/MultiDiagnostics.cpp
+++ b/Source/Diagnostics/MultiDiagnostics.cpp
@@ -12,9 +12,9 @@ MultiDiagnostics::MultiDiagnostics ()
alldiags.resize( ndiags );
for (int i=0; i<ndiags; i++){
if ( diags_types[i] == DiagTypes::Full ){
- alldiags[i].reset( new FullDiagnostics(i, diags_names[i]) );
+ alldiags[i] = std::make_unique<FullDiagnostics>(i, diags_names[i]);
} else if ( diags_types[i] == DiagTypes::BackTransformed ){
- alldiags[i].reset( new BTDiagnostics(i, diags_names[i]) );
+ alldiags[i] = std::make_unique<BTDiagnostics>(i, diags_names[i]);
} else {
amrex::Abort("Unknown diagnostic type");
}