diff options
Diffstat (limited to 'src/properties.h')
-rw-r--r-- | src/properties.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/properties.h b/src/properties.h index 4bad8e59..a2ce5b88 100644 --- a/src/properties.h +++ b/src/properties.h @@ -45,7 +45,8 @@ class Properties * @return the value of the given property or the given default when it * doesn't exist. */ - const std::string& getProperty(const std::string &name, const std::string &def = "") const + const std::string &getProperty(const std::string &name, + const std::string &def = "") const { PropertyMap::const_iterator i = mProperties.find(name); return (i != mProperties.end()) ? i->second : def; @@ -59,7 +60,7 @@ class Properties * @return the value of the given property, or 0.0f when it doesn't * exist. */ - float getFloatProperty(std::string const &name, float def = 0.0f) const + float getFloatProperty(const std::string &name, float def = 0.0f) const { PropertyMap::const_iterator i = mProperties.find(name); float ret = def; |