Skip to content

Commit

Permalink
Use const auto reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hakonhagland committed Aug 12, 2024
1 parent ac73a30 commit 68495b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opm/input/eclipse/Schedule/ResCoup/MasterGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool MasterGroup::operator==(const MasterGroup& rhs) const {

void checkValidGroupName(const std::string& name, HandlerContext& handlerContext)
{
auto groups = handlerContext.state().groups;
const auto& groups = handlerContext.state().groups;
if (!groups.has(name)) {
std::string msg = fmt::format("Group '{}': Not defined. Master groups should be defined in advance by using GRUPTREE before referenced in GRUPMAST.", name);
throw OpmInputError(msg, handlerContext.keyword.location());
Expand Down

0 comments on commit 68495b8

Please sign in to comment.