diff options
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/settings.h b/src/settings.h index d1edca6b6..c4b94d67d 100644 --- a/src/settings.h +++ b/src/settings.h @@ -73,15 +73,10 @@ struct ValueSpec { }; struct SettingsEntry { - SettingsEntry() : - group(NULL), - is_group(false) - {} + SettingsEntry() {} SettingsEntry(const std::string &value_) : - value(value_), - group(NULL), - is_group(false) + value(value_) {} SettingsEntry(Settings *group_) : @@ -89,9 +84,9 @@ struct SettingsEntry { is_group(true) {} - std::string value; - Settings *group; - bool is_group; + std::string value = ""; + Settings *group = nullptr; + bool is_group = false; }; typedef std::unordered_map<std::string, SettingsEntry> SettingEntries; |