From 396ec78afb5cc66d695d0040bc153159d172ad0d Mon Sep 17 00:00:00 2001 From: Yaraslau Tamashevich Date: Fri, 19 Jul 2024 09:22:57 +0300 Subject: [PATCH] [clang-tidy] fix cppcoreguidelines-use-default-member-init check --- palace/fem/libceed/integrator.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/palace/fem/libceed/integrator.hpp b/palace/fem/libceed/integrator.hpp index 6d5a5fe2f..ecf501ac7 100644 --- a/palace/fem/libceed/integrator.hpp +++ b/palace/fem/libceed/integrator.hpp @@ -26,23 +26,18 @@ enum EvalMode : unsigned int // NOLINT struct CeedQFunctionInfo { // QFunctions for operator construction and application. - CeedQFunctionUser apply_qf; + CeedQFunctionUser apply_qf{nullptr}; // Path and name of the QFunctions for operator construction and application. std::string apply_qf_path; // Evaluation modes for the test and trial basis. - unsigned int trial_ops, test_ops; + unsigned int trial_ops{0}, test_ops{0}; // Control whether or not to pre-assemble the quadrature data or compute it during // operator application in true matrix-free fashion. - bool assemble_q_data; + bool assemble_q_data{false}; - CeedQFunctionInfo() - : apply_qf(nullptr), apply_qf_path(""), trial_ops(0), test_ops(0), - assemble_q_data(false) - { - } }; // Helper function to get the geometry space dimension.