Merge pull request #3557 from joakim-hove/single-well-fixup

Use const reference
This commit is contained in:
Bård Skaflestad 2021-09-29 11:53:54 +02:00 committed by GitHub
commit 93a3e8bc1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ void SingleWellState::open() {
}
double SingleWellState::sum_connection_rates(const std::vector<double> connection_rates) const {
double SingleWellState::sum_connection_rates(const std::vector<double>& connection_rates) const {
return this->parallel_info.get().sumPerfValues(connection_rates.begin(), connection_rates.end());
}

View File

@ -67,7 +67,7 @@ public:
double sum_polymer_rates() const;
double sum_brine_rates() const;
private:
double sum_connection_rates(const std::vector<double> connection_rates) const;
double sum_connection_rates(const std::vector<double>& connection_rates) const;
};