From e2146822d2af7afe6123147e7d245bf10798cb05 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Wed, 22 Jan 2025 10:12:48 -0800 Subject: [PATCH] Use std::move (#4307) Fixed a minor issue found by Coverity. --- Src/Base/AMReX_ParmParse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Base/AMReX_ParmParse.cpp b/Src/Base/AMReX_ParmParse.cpp index 37b5897a9f..ca279cb495 100644 --- a/Src/Base/AMReX_ParmParse.cpp +++ b/Src/Base/AMReX_ParmParse.cpp @@ -622,7 +622,7 @@ bldTable (const char*& str, ParmParse::Table& tab) msg += tokname; amrex::Abort(msg.c_str()); } - cur_list.push_back(tokname); + cur_list.push_back(std::move(tokname)); cur_linefeeds.push_back(num_linefeeds); break; }