Merge pull request #436 from akva2/again_pass_by_ref
fixed: pass string by const ref
This commit is contained in:
@@ -99,7 +99,7 @@ public:
|
||||
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;
|
||||
bool hasCompletion(const std::string& well_name, const size_t completionIdx) const;
|
||||
|
||||
size_t sizeWells() const;
|
||||
size_t sizeCompletions() const;
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace Opm {
|
||||
}
|
||||
|
||||
|
||||
bool WellTestState::hasCompletion(const std::string well_name, const size_t completionIdx) const {
|
||||
bool WellTestState::hasCompletion(const std::string& well_name, const size_t completionIdx) const {
|
||||
const auto completion_iter = std::find_if(completions.begin(),
|
||||
completions.end(),
|
||||
[&well_name, &completionIdx](const ClosedCompletion& completion)
|
||||
|
||||
Reference in New Issue
Block a user