diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-01-08 12:43:07 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-01-22 23:15:29 +0100 |
commit | 414606b64aa6c6cf3209861b81a92a6af873937f (patch) | |
tree | 408992e785dde59748aa2f94bd8666f190575567 /dggui/tabbutton.cc | |
parent | 235ad6fbbce2e0ae9e06db960a5ba3b099936ace (diff) |
Make UI events const refs and celan up redundant use of virtual with override.event_cleanup
Diffstat (limited to 'dggui/tabbutton.cc')
-rw-r--r-- | dggui/tabbutton.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dggui/tabbutton.cc b/dggui/tabbutton.cc index a2b0549..c681131 100644 --- a/dggui/tabbutton.cc +++ b/dggui/tabbutton.cc @@ -90,7 +90,7 @@ TabID TabButton::getID() const return tab_id; } -void TabButton::repaintEvent(RepaintEvent* e) +void TabButton::repaintEvent(const RepaintEvent& e) { Painter p(*this); @@ -119,9 +119,9 @@ void TabButton::repaintEvent(RepaintEvent* e) p.drawText(x, y, font, text, true); } -void TabButton::scrollEvent(ScrollEvent* scroll_event) +void TabButton::scrollEvent(const ScrollEvent& scroll_event) { - scrollNotifier(scroll_event->delta); + scrollNotifier(scroll_event.delta); } void TabButton::clickHandler() |