Merge pull request #436 from akva2/again_pass_by_ref

fixed: pass string by const ref
This commit is contained in:
Atgeirr Flø Rasmussen
2018-06-26 10:57:38 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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)