From 1425c6def156840b359b90b4f32b9c7b8f005731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Wed, 21 Jun 2017 11:51:29 +0200 Subject: Cpp11 initializers: last src root changeset (#6022) * Cpp11 initializers: last src root changeset Finish to migrate all src root folder files to C++11 constructor initializers --- src/settings.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/settings.h') 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 SettingEntries; -- cgit v1.2.3