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:
parent
de5ecc9fa3
commit
370354cc87
8 changed files with 57 additions and 75 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue