diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-02-20 14:00:19 +0100 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-02-28 14:25:27 +0000 |
commit | ced351295b67f0c8ef72802a11d2a0f2381b46e8 (patch) | |
tree | bdd563c8d0f731f3cb949494ee07e87a998aa7e5 /examples | |
parent | 1fab644753443a525475740fc23172dedaa70d0e (diff) | |
download | qtwayland-ced351295b67f0c8ef72802a11d2a0f2381b46e8.tar.gz |
Use override when applicable
Applied automatic fixes using clang-tidy's modernize-use-override.
This adds the "override" keyword where it's possible and also removes the
"virtual" keyword when redundant.
Change-Id: I899950e5cf8782785d30a245a9c69c1720905d50
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/wayland/minimal-cpp/compositor.h | 2 | ||||
-rw-r--r-- | examples/wayland/qwindow-compositor/compositor.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/wayland/minimal-cpp/compositor.h b/examples/wayland/minimal-cpp/compositor.h index 2a4ab7d8..984deebd 100644 --- a/examples/wayland/minimal-cpp/compositor.h +++ b/examples/wayland/minimal-cpp/compositor.h @@ -77,7 +77,7 @@ class Compositor : public QWaylandCompositor Q_OBJECT public: Compositor(Window *window); - ~Compositor(); + ~Compositor() override; void create() override; QList<View*> views() const { return m_views; } diff --git a/examples/wayland/qwindow-compositor/compositor.h b/examples/wayland/qwindow-compositor/compositor.h index 5cc3e28c..2a395a1a 100644 --- a/examples/wayland/qwindow-compositor/compositor.h +++ b/examples/wayland/qwindow-compositor/compositor.h @@ -92,7 +92,7 @@ signals: void animationDone(); protected: - void timerEvent(QTimerEvent *event); + void timerEvent(QTimerEvent *event) override; private: friend class Compositor; @@ -127,7 +127,7 @@ class Compositor : public QWaylandCompositor Q_OBJECT public: Compositor(QWindow *window); - ~Compositor(); + ~Compositor() override; void create() override; void startRender(); |