Added const to Dimension::equal().
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Opm {
|
||||
}
|
||||
|
||||
|
||||
bool Dimension::equal(const Dimension& other) {
|
||||
bool Dimension::equal(const Dimension& other) const {
|
||||
if ((m_name == other.m_name) &&
|
||||
(m_SIfactor == other.m_SIfactor))
|
||||
return true;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Opm {
|
||||
public:
|
||||
Dimension(const std::string& name, double SI_factor);
|
||||
double getSIScaling() const;
|
||||
bool equal(const Dimension& other);
|
||||
bool equal(const Dimension& other) const;
|
||||
const std::string& getName() const;
|
||||
static Dimension * newComposite(const std::string& dim , double SIfactor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user