Skip to content

Commit

Permalink
Use std::move (#4307)
Browse files Browse the repository at this point in the history
Fixed a minor issue found by Coverity.
  • Loading branch information
WeiqunZhang authored Jan 22, 2025
1 parent b15bbd3 commit e214682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_ParmParse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e214682

Please sign in to comment.