mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Cpp11 patchset 11: continue working on constructor style migration (#6004)
This commit is contained in:
parent
8f7785771b
commit
4faaadc8d5
39 changed files with 200 additions and 396 deletions
14
src/mods.h
14
src/mods.h
|
@ -42,19 +42,13 @@ struct ModSpec
|
|||
std::unordered_set<std::string> optdepends;
|
||||
std::unordered_set<std::string> unsatisfied_depends;
|
||||
|
||||
bool part_of_modpack;
|
||||
bool is_modpack;
|
||||
bool part_of_modpack = false;
|
||||
bool is_modpack = false;
|
||||
// if modpack:
|
||||
std::map<std::string,ModSpec> modpack_content;
|
||||
ModSpec(const std::string &name_="", const std::string &path_=""):
|
||||
name(name_),
|
||||
path(path_),
|
||||
depends(),
|
||||
optdepends(),
|
||||
unsatisfied_depends(),
|
||||
part_of_modpack(false),
|
||||
is_modpack(false),
|
||||
modpack_content()
|
||||
path(path_)
|
||||
{}
|
||||
};
|
||||
|
||||
|
@ -235,7 +229,7 @@ public:
|
|||
virtual bool setString(const std::string &name, const std::string &var);
|
||||
private:
|
||||
std::string m_mod_name;
|
||||
bool m_modified;
|
||||
bool m_modified = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue