diff --git a/src/theme.hpp b/src/theme.hpp index ef26e8e1328..4b9b05df4f4 100644 --- a/src/theme.hpp +++ b/src/theme.hpp @@ -186,7 +186,7 @@ public: const std::vector& 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_;