From 33bd03372d1ed9dc549d8eac80f7341bc220d1e3 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 19 Mar 2024 11:19:24 -0400 Subject: [PATCH] clean the constructor of advance_status (#2790) this addresses clang-tidy cppcoreguidelines-use-default-member-init --- Source/driver/Castro.H | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/driver/Castro.H b/Source/driver/Castro.H index cbd002f889..574456bc53 100644 --- a/Source/driver/Castro.H +++ b/Source/driver/Castro.H @@ -112,10 +112,10 @@ enum int_method { CornerTransportUpwind = 0, // why an advance failed. struct advance_status { - bool success; - Real suggested_dt; - std::string reason; - advance_status() : success(true), suggested_dt(0.0_rt), reason("") {} + bool success{true}; + Real suggested_dt{}; + std::string reason{}; + advance_status() = default; }; ///