Skip to content

Commit

Permalink
const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
akva2 committed Dec 23, 2024
1 parent 5084061 commit 3b5f508
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion opm/input/eclipse/Schedule/ResCoup/GrupSlav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ void checkValidSlaveGroupName(const std::string& name, HandlerContext& handlerCo
}
}

ReservoirCoupling::GrupSlav::FilterFlag getFilterFlag(const DeckItem& keyword, HandlerContext& handlerContext)
ReservoirCoupling::GrupSlav::FilterFlag
getFilterFlag(const DeckItem& keyword, const HandlerContext& handlerContext)
{
try {
return ReservoirCoupling::GrupSlav::filterFlagFromString(keyword.getTrimmedString(0));
Expand Down
2 changes: 1 addition & 1 deletion tests/parser/ReservoirCouplingTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void assertRaisesInputErrorException(const std::string& schedule_string, bool sl
}

void checkLastLineStringBuffer(
std::ostringstream& stream_buffer,
const std::ostringstream& stream_buffer,
const std::string& expected,
size_t offset // Line offset from the end of the string
) {
Expand Down
10 changes: 5 additions & 5 deletions tests/test_Restart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,11 @@ struct Setup
};

RestartValue
first_sim(const Setup& setup,
Action::State& action_state,
SummaryState& st,
UDQState& udq_state,
bool write_double)
first_sim(const Setup& setup,
const Action::State& action_state,
SummaryState& st,
UDQState& udq_state,
bool write_double)
{
WellTestState wtest_state;
EclipseIO eclWriter(setup.es, setup.grid, setup.schedule, setup.summary_config);
Expand Down

0 comments on commit 3b5f508

Please sign in to comment.