Added const to Dimension::equal().

This commit is contained in:
Joakim Hove
2013-12-14 10:20:57 +01:00
parent 084fc24174
commit a485efbdd0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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