From f9030497b6196ce2fadb6b6ada5d784be227d9a6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 May 2014 15:14:16 +0300 Subject: Add missing const. --- src/gui/widgets/button.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index 015faf009..716ed7728 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -158,7 +158,7 @@ class Button final : public Widget, void mouseReleased(MouseEvent& event) override final; - void setDescription(std::string text) + void setDescription(const std::string &text) { mDescription = text; } std::string getDescription() const A_WARN_UNUSED -- cgit v1.2.3-70-g09d2