mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 19:57:44 +00:00
Pass parameter by const ref instead of const value.
Issue found by cppcheck.
This commit is contained in:
parent
23d11f8fd0
commit
ea0da0496f
@ -186,7 +186,7 @@ public:
|
||||
|
||||
const std::vector<std::string>& items() const { return items_; }
|
||||
|
||||
void set_title(const std::string new_title) { title_ = new_title; }
|
||||
void set_title(const std::string& new_title) { title_ = new_title; }
|
||||
private:
|
||||
bool context_;
|
||||
std::string title_, tooltip_, image_, type_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user