From 2e6e7eec01fe0f04630ef632e55be47d06812068 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 6 Jan 2025 00:17:24 -0800 Subject: [PATCH] ParmParse `queryAddWithParser` No Const `ParmParse::queryAddWithParser` might manipulate the internal state and should not be a const method. --- Src/Base/AMReX_ParmParse.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Base/AMReX_ParmParse.H b/Src/Base/AMReX_ParmParse.H index dc4fa07fb4..73b3dbc107 100644 --- a/Src/Base/AMReX_ParmParse.H +++ b/Src/Base/AMReX_ParmParse.H @@ -1117,7 +1117,7 @@ public: std::is_same_v || std::is_same_v || std::is_same_v,int> = 0> - int queryAddWithParser (const char* name, T& ref) const + int queryAddWithParser (const char* name, T& ref) { int exist = this->queryWithParser(name, ref); if (!exist) {