From 414606b64aa6c6cf3209861b81a92a6af873937f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 8 Jan 2022 12:43:07 +0100 Subject: Make UI events const refs and celan up redundant use of virtual with override. --- test/uitests/framewidgettest.cc | 2 +- test/uitests/powerwidgettest.cc | 2 +- test/uitests/tabwidgettest.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test/uitests') diff --git a/test/uitests/framewidgettest.cc b/test/uitests/framewidgettest.cc index 97f9ed0..9660074 100644 --- a/test/uitests/framewidgettest.cc +++ b/test/uitests/framewidgettest.cc @@ -141,7 +141,7 @@ public: return !closing; } - void repaintEvent(dggui::RepaintEvent* repaintEvent) override + void repaintEvent(const dggui::RepaintEvent& repaintEvent) override { dggui::Painter painter(*this); painter.setColour(dggui::Colour(0.85)); diff --git a/test/uitests/powerwidgettest.cc b/test/uitests/powerwidgettest.cc index 4d01168..fd1346d 100644 --- a/test/uitests/powerwidgettest.cc +++ b/test/uitests/powerwidgettest.cc @@ -96,7 +96,7 @@ public: return !closing; } - void repaintEvent(dggui::RepaintEvent* repaintEvent) override + void repaintEvent(const dggui::RepaintEvent& repaintEvent) override { dggui::Painter painter(*this); painter.setColour(dggui::Colour(0.85)); diff --git a/test/uitests/tabwidgettest.cc b/test/uitests/tabwidgettest.cc index 804e979..ac023fd 100644 --- a/test/uitests/tabwidgettest.cc +++ b/test/uitests/tabwidgettest.cc @@ -126,7 +126,7 @@ public: return !closing; } - void repaintEvent(dggui::RepaintEvent* repaintEvent) override + void repaintEvent(const dggui::RepaintEvent& repaintEvent) override { dggui::Painter painter(*this); painter.setColour(dggui::Colour(0.85)); -- cgit v1.2.3