summaryrefslogtreecommitdiff
path: root/plugingui/button.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-09 21:24:56 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-09 21:24:56 +0100
commit46c6c8bf076f5a007820e2ec0cea22b3ebd81e0b (patch)
tree278d64460fa8b5e35c5e9062a9b66efa9b70a7c2 /plugingui/button.h
parent06712d8d173a61d5a9680a2a9a62350ed093b69d (diff)
Make setText use const string argument.
Diffstat (limited to 'plugingui/button.h')
-rw-r--r--plugingui/button.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/button.h b/plugingui/button.h
index c13f7dd..e33c3a8 100644
--- a/plugingui/button.h
+++ b/plugingui/button.h
@@ -43,7 +43,7 @@ public:
bool isFocusable() override { return true; }
bool catchMouse() override { return true; }
- void setText(std::string text);
+ void setText(const std::string& text);
Notifier<> clickNotifier;
@@ -51,8 +51,8 @@ protected:
virtual void clicked() {}
// From Widget:
- virtual void repaintEvent(RepaintEvent *e) override;
- virtual void buttonEvent(ButtonEvent *e) override;
+ virtual void repaintEvent(RepaintEvent* e) override;
+ virtual void buttonEvent(ButtonEvent* e) override;
virtual void mouseLeaveEvent() override;
virtual void mouseEnterEvent() override;