diff options
Diffstat (limited to 'src/properties.h')
-rw-r--r-- | src/properties.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/properties.h b/src/properties.h index bcd114c1..93148bdf 100644 --- a/src/properties.h +++ b/src/properties.h @@ -49,7 +49,7 @@ class Properties * doesn't exist. */ const std::string& - getProperty(const std::string &name, const std::string &def = "") + getProperty(const std::string &name, const std::string &def = "") const { PropertyMap::const_iterator i = mProperties.find(name); return (i != mProperties.end()) ? i->second : def; @@ -63,8 +63,7 @@ class Properties * @return the value of the given property, or 0.0f when it doesn't * exist. */ - const float - getFloatProperty(const std::string &name, float def = 0.0f) + float getFloatProperty(std::string const &name, float def = 0.0f) const { PropertyMap::const_iterator i = mProperties.find(name); float ret = def; @@ -85,7 +84,7 @@ class Properties * <code>false</code> otherwise. */ bool - hasProperty(const std::string &name) + hasProperty(const std::string &name) const { return (mProperties.find(name) != mProperties.end()); } |