mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)
* Also remove 2 non declared but defined functions * Make some functions around const ref changes const
This commit is contained in:
@@ -74,11 +74,10 @@ public:
|
||||
std::string name;
|
||||
std::string value;
|
||||
|
||||
Option(const std::string &name_, const std::string &value_)
|
||||
{
|
||||
name = name_;
|
||||
value = value_;
|
||||
}
|
||||
Option(const std::string &name_, const std::string &value_) :
|
||||
name(name_),
|
||||
value(value_)
|
||||
{}
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user