summaryrefslogtreecommitdiff
path: root/src/properties.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
commit5afe88df2538274859a162ffd63ed52118e80c19 (patch)
treeb610dfd58dc748fd63f49565b2a43eea2316714f /src/properties.h
parent73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff)
downloadmana-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz
mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2
mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz
mana-5afe88df2538274859a162ffd63ed52118e80c19.zip
Apply C++11 fixits
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
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;
};