diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-09 21:24:56 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-09 21:24:56 +0100 |
commit | 46c6c8bf076f5a007820e2ec0cea22b3ebd81e0b (patch) | |
tree | 278d64460fa8b5e35c5e9062a9b66efa9b70a7c2 /plugingui/button.cc | |
parent | 06712d8d173a61d5a9680a2a9a62350ed093b69d (diff) |
Make setText use const string argument.
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r-- | plugingui/button.cc | 2 |
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); |