summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index 9248242..5ff97a7 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -132,7 +132,7 @@ void Button::repaintEvent(RepaintEvent *e)
height()/2+5+1+(draw_state==up?0:1), font, text, true);
}
-void Button::setText(std::string text)
+void Button::setText(const std::string& text)
{
this->text = text;
repaintEvent(nullptr);