Merge pull request #428 from akva2/pass_const_ref
fixed: pass by const ref
This commit is contained in:
commit
197b34d9ec
@ -96,7 +96,7 @@ public:
|
||||
*/
|
||||
void dropCompletion(const std::string& well_name, size_t completionIdx);
|
||||
|
||||
bool hasWell(const std::string well_name, WellTestConfig::Reason reason) const;
|
||||
bool hasWell(const std::string& well_name, WellTestConfig::Reason reason) const;
|
||||
void openWell(const std::string& well_name);
|
||||
|
||||
bool hasCompletion(const std::string well_name, const size_t completionIdx) const;
|
||||
|
@ -48,7 +48,7 @@ namespace Opm {
|
||||
}
|
||||
|
||||
|
||||
bool WellTestState::hasWell(const std::string well_name, WellTestConfig::Reason reason) const {
|
||||
bool WellTestState::hasWell(const std::string& well_name, WellTestConfig::Reason reason) const {
|
||||
const auto well_iter = std::find_if(wells.begin(),
|
||||
wells.end(),
|
||||
[&well_name, &reason](const ClosedWell& well)
|
||||
|
Loading…
Reference in New Issue
Block a user