1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Fix various performance issues reported by cppcheck (#5628)

* Also remove 1 non declared but defined functions
This commit is contained in:
Loïc Blot 2017-04-21 10:06:08 +02:00 committed by GitHub
parent de5ecc9fa3
commit 370354cc87
8 changed files with 57 additions and 75 deletions

View file

@ -74,24 +74,21 @@ struct ValueSpec {
};
struct SettingsEntry {
SettingsEntry()
{
group = NULL;
is_group = false;
}
SettingsEntry() :
group(NULL),
is_group(false)
{}
SettingsEntry(const std::string &value_)
{
value = value_;
group = NULL;
is_group = false;
}
SettingsEntry(const std::string &value_) :
value(value_),
group(NULL),
is_group(false)
{}
SettingsEntry(Settings *group_)
{
group = group_;
is_group = true;
}
SettingsEntry(Settings *group_) :
group(group_),
is_group(true)
{}
std::string value;
Settings *group;