mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Fix various performance issues reported by cppcheck (#5628)
* Also remove 1 non declared but defined functions
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user