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/subgame.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/subgame.h') diff --git a/src/subgame.h b/src/subgame.h index f3633ce2f..dda249a98 100644 --- a/src/subgame.h +++ b/src/subgame.h @@ -26,8 +26,6 @@ with this program; if not, write to the Free Software Foundation, Inc., class Settings; -#define WORLDNAME_BLACKLISTED_CHARS "/\\" - struct SubgameSpec { std::string id; // "" = game does not exist @@ -37,15 +35,15 @@ struct SubgameSpec std::string name; std::string menuicon_path; - SubgameSpec(const std::string &id_="", - const std::string &path_="", - const std::string &gamemods_path_="", - const std::set &addon_mods_paths_=std::set(), - const std::string &name_="", - const std::string &menuicon_path_=""): + SubgameSpec(const std::string &id_ = "", + const std::string &path_ = "", + const std::string &gamemods_path_ = "", + const std::set &addon_mods_paths_ = std::set(), + const std::string &name_ = "", + const std::string &menuicon_path_ = ""): id(id_), path(path_), - gamemods_path(gamemods_path_), + gamemods_path(gamemods_path_), addon_mods_paths(addon_mods_paths_), name(name_), menuicon_path(menuicon_path_) -- cgit v1.2.3