From 46c6c8bf076f5a007820e2ec0cea22b3ebd81e0b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 9 Nov 2015 21:24:56 +0100 Subject: Make setText use const string argument. --- plugingui/button.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugingui/button.cc') 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); -- cgit v1.2.3