Pass parameter by const ref instead of const value.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2009-10-02 19:24:57 +00:00
parent 23d11f8fd0
commit ea0da0496f

View File

@ -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_;