summaryrefslogtreecommitdiff
path: root/src/properties.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/properties.h')
-rw-r--r--src/properties.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/properties.h b/src/properties.h
index 59318b80..40be8d7f 100644
--- a/src/properties.h
+++ b/src/properties.h
@@ -45,7 +45,7 @@ class Properties
std::string getProperty(const std::string &name,
const std::string &def = "") const
{
- PropertyMap::const_iterator i = mProperties.find(name);
+ auto i = mProperties.find(name);
return (i != mProperties.end()) ? i->second : def;
}
@@ -59,7 +59,7 @@ class Properties
*/
float getFloatProperty(const std::string &name, float def = 0.0f) const
{
- PropertyMap::const_iterator i = mProperties.find(name);
+ auto i = mProperties.find(name);
float ret = def;
if (i != mProperties.end())
{
@@ -80,7 +80,7 @@ class Properties
*/
bool getBoolProperty(const std::string &name, bool def = false) const
{
- PropertyMap::const_iterator i = mProperties.find(name);
+ auto i = mProperties.find(name);
bool ret = def;
if (i != mProperties.end())
{
@@ -116,7 +116,7 @@ class Properties
}
private:
- typedef std::map<std::string, std::string> PropertyMap;
+ using PropertyMap = std::map<std::string, std::string>;
PropertyMap mProperties;
};