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 /src/client/qwaylandshm_p.h | |
parent | 1fab644753443a525475740fc23172dedaa70d0e (diff) |
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 'src/client/qwaylandshm_p.h')
-rw-r--r-- | src/client/qwaylandshm_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/qwaylandshm_p.h b/src/client/qwaylandshm_p.h index 519482d09..639effa16 100644 --- a/src/client/qwaylandshm_p.h +++ b/src/client/qwaylandshm_p.h @@ -69,7 +69,7 @@ class Q_WAYLAND_CLIENT_EXPORT QWaylandShm : public QtWayland::wl_shm public: QWaylandShm(QWaylandDisplay *display, int version, uint32_t id); - ~QWaylandShm(); + ~QWaylandShm() override; bool formatSupported(wl_shm_format format) const; bool formatSupported(QImage::Format format) const; @@ -78,7 +78,7 @@ public: static QImage::Format formatFrom(wl_shm_format format); protected: - virtual void shm_format(uint32_t format); + void shm_format(uint32_t format) override; private: QVector<uint32_t> m_formats; |