diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-08-16 10:27:03 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2018-08-17 14:41:47 +0000 |
commit | 034c9f563d91fe646ab63675b7b951c5c0581f61 (patch) | |
tree | 3ed46c4d003194e42f13574caab4680c0f7f0c37 /src | |
parent | 845839b971f6af017be77dbe1ee1541453d12c23 (diff) | |
download | qtwayland-034c9f563d91fe646ab63675b7b951c5c0581f61.tar.gz |
Compositor xdg-shell: Make constructors explicit
Change-Id: If00feef8c7e55fc2ac56b9a0e5bfeabfa158efc6
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/compositor/extensions/qwaylandxdgshell.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshell.h b/src/compositor/extensions/qwaylandxdgshell.h index bcc316e8..c2807f77 100644 --- a/src/compositor/extensions/qwaylandxdgshell.h +++ b/src/compositor/extensions/qwaylandxdgshell.h @@ -67,8 +67,8 @@ class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandXdgShell : public QWaylandShellTemplat Q_OBJECT Q_DECLARE_PRIVATE(QWaylandXdgShell) public: - QWaylandXdgShell(); - QWaylandXdgShell(QWaylandCompositor *compositor); + explicit QWaylandXdgShell(); + explicit QWaylandXdgShell(QWaylandCompositor *compositor); void initialize() override; @@ -100,8 +100,8 @@ class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandXdgSurface : public QWaylandShellSurfa Q_PROPERTY(QRect windowGeometry READ windowGeometry NOTIFY windowGeometryChanged) public: - QWaylandXdgSurface(); - QWaylandXdgSurface(QWaylandXdgShell* xdgShell, QWaylandSurface *surface, const QWaylandResource &resource); + explicit QWaylandXdgSurface(); + explicit QWaylandXdgSurface(QWaylandXdgShell* xdgShell, QWaylandSurface *surface, const QWaylandResource &resource); Q_INVOKABLE void initialize(QWaylandXdgShell* xdgShell, QWaylandSurface *surface, const QWaylandResource &resource); @@ -167,7 +167,7 @@ public: }; Q_ENUM(DecorationMode) - QWaylandXdgToplevel(QWaylandXdgSurface *xdgSurface, QWaylandResource &resource); + explicit QWaylandXdgToplevel(QWaylandXdgSurface *xdgSurface, QWaylandResource &resource); QWaylandXdgToplevel *parentToplevel() const; @@ -263,8 +263,8 @@ Q_SIGNALS: void configuredGeometryChanged(); private: - QWaylandXdgPopup(QWaylandXdgSurface *xdgSurface, QWaylandXdgSurface *parentXdgSurface, - QWaylandXdgPositioner *positioner, QWaylandResource &resource); + explicit QWaylandXdgPopup(QWaylandXdgSurface *xdgSurface, QWaylandXdgSurface *parentXdgSurface, + QWaylandXdgPositioner *positioner, QWaylandResource &resource); friend class QWaylandXdgSurfacePrivate; }; |