diff --git a/MeshLib/Properties.cpp b/MeshLib/Properties.cpp index 08e0ee48664900f5400fe771984d0ecf1d2e374b..a57fb799665d5bfd0b88b53e6959ad1bdae67606 100644 --- a/MeshLib/Properties.cpp +++ b/MeshLib/Properties.cpp @@ -30,7 +30,7 @@ void Properties::removePropertyVector(std::string const& name) _properties.erase(it); } -bool Properties::hasPropertyVector(std::string const& name) +bool Properties::hasPropertyVector(std::string const& name) const { std::map<std::string, PropertyVectorBase*>::const_iterator it( _properties.find(name) diff --git a/MeshLib/Properties.h b/MeshLib/Properties.h index 5194ebf27f4315cf1f5057bac4244bbd5ad8945d..d1c2cabacbe9e43f6e9d31f00d9cf2544452705e 100644 --- a/MeshLib/Properties.h +++ b/MeshLib/Properties.h @@ -98,7 +98,7 @@ public: /// Check if a PropertyVector accessible by the name is already /// stored within the Properties object. /// @param name the name of the property (for instance porosity) - bool hasPropertyVector(std::string const& name); + bool hasPropertyVector(std::string const& name) const; std::vector<std::string> getPropertyVectorNames() const;