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/compositor/wayland_wrapper | |
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/compositor/wayland_wrapper')
-rw-r--r-- | src/compositor/wayland_wrapper/qwldataoffer_p.h | 2 | ||||
-rw-r--r-- | src/compositor/wayland_wrapper/qwldatasource_p.h | 2 | ||||
-rw-r--r-- | src/compositor/wayland_wrapper/qwlregion_p.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/compositor/wayland_wrapper/qwldataoffer_p.h b/src/compositor/wayland_wrapper/qwldataoffer_p.h index 9d5efb5f1..d46f26ae9 100644 --- a/src/compositor/wayland_wrapper/qwldataoffer_p.h +++ b/src/compositor/wayland_wrapper/qwldataoffer_p.h @@ -68,7 +68,7 @@ class DataOffer : public QtWaylandServer::wl_data_offer { public: DataOffer(DataSource *data_source, QtWaylandServer::wl_data_device::Resource *target); - ~DataOffer(); + ~DataOffer() override; protected: void data_offer_accept(Resource *resource, uint32_t serial, const QString &mime_type) override; diff --git a/src/compositor/wayland_wrapper/qwldatasource_p.h b/src/compositor/wayland_wrapper/qwldatasource_p.h index d5437a301..5b463ce6a 100644 --- a/src/compositor/wayland_wrapper/qwldatasource_p.h +++ b/src/compositor/wayland_wrapper/qwldatasource_p.h @@ -70,7 +70,7 @@ class DataSource : public QObject, public QtWaylandServer::wl_data_source { public: DataSource(struct wl_client *client, uint32_t id, uint32_t time); - ~DataSource(); + ~DataSource() override; uint32_t time() const; QList<QString> mimeTypes() const; diff --git a/src/compositor/wayland_wrapper/qwlregion_p.h b/src/compositor/wayland_wrapper/qwlregion_p.h index d333f6ba1..00e1d239f 100644 --- a/src/compositor/wayland_wrapper/qwlregion_p.h +++ b/src/compositor/wayland_wrapper/qwlregion_p.h @@ -66,7 +66,7 @@ class Q_WAYLAND_COMPOSITOR_EXPORT Region : public QtWaylandServer::wl_region { public: Region(struct wl_client *client, uint32_t id); - ~Region(); + ~Region() override; static Region *fromResource(struct ::wl_resource *resource); |