changed return type to reference-to-const
This commit is contained in:
@@ -95,7 +95,7 @@ namespace Opm {
|
||||
|
||||
int getHeadI() const;
|
||||
int getHeadJ() const;
|
||||
std::vector<double> getMD() const;
|
||||
const std::vector<double>& getMD() const;
|
||||
void add(Connection);
|
||||
std::size_t size() const;
|
||||
bool empty() const;
|
||||
|
||||
@@ -937,7 +937,7 @@ namespace Opm {
|
||||
return this->headJ;
|
||||
}
|
||||
|
||||
std::vector<double> WellConnections::getMD() const {
|
||||
const std::vector<double>& WellConnections::getMD() const {
|
||||
return this->md;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user