aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-03-23 18:09:24 +0100
committerGravatar GitHub <noreply@github.com> 2023-03-23 10:09:24 -0700
commitd5c7d5484fb4e8012f8f9a46ff8ee6c6dac427eb (patch)
tree608ecffad8f9737912c8ff1871c1f0d1ce20e632 /Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
parent1d7e72f2e2e37cf7f2b9ca4910e29a0729c35aff (diff)
downloadWarpX-d5c7d5484fb4e8012f8f9a46ff8ee6c6dac427eb.tar.gz
WarpX-d5c7d5484fb4e8012f8f9a46ff8ee6c6dac427eb.tar.zst
WarpX-d5c7d5484fb4e8012f8f9a46ff8ee6c6dac427eb.zip
fix modernize use equals default check by clang tidy (#3775)
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp b/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
index 0993a3eaf..b6cb1da97 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatSensei.cpp
@@ -39,12 +39,14 @@ FlushFormatSensei::FlushFormatSensei (amrex::AmrMesh *amr_mesh,
#endif
}
+#ifdef AMREX_USE_SENSEI_INSITU
FlushFormatSensei::~FlushFormatSensei ()
{
-#ifdef AMREX_USE_SENSEI_INSITU
delete m_insitu_bridge;
-#endif
}
+#else
+FlushFormatSensei::~FlushFormatSensei () = default;
+#endif
void
FlushFormatSensei::WriteToFile (