summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandxdgshellv6_p.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-02-27 16:21:17 +0100
committerJohan Helsing <johan.helsing@qt.io>2018-02-28 10:51:35 +0000
commit1fab644753443a525475740fc23172dedaa70d0e (patch)
treebca0a88662679acd150172f5a73f64d1604960cf /src/compositor/extensions/qwaylandxdgshellv6_p.h
parentc4bd9198b4a0fac809903dd2c09276c2c3c1b22e (diff)
Use default member initialization for raw pointers
Initialize to nullptr to prevent undefined behavior. Change-Id: I7753c0be77a886d62ecb1cd7b86fc8c98340b0b8 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandxdgshellv6_p.h')
-rw-r--r--src/compositor/extensions/qwaylandxdgshellv6_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellv6_p.h b/src/compositor/extensions/qwaylandxdgshellv6_p.h
index 191a936f9..6feb95060 100644
--- a/src/compositor/extensions/qwaylandxdgshellv6_p.h
+++ b/src/compositor/extensions/qwaylandxdgshellv6_p.h
@@ -168,7 +168,7 @@ protected:
void zxdg_toplevel_v6_set_minimized(Resource *resource) override;
public:
- QWaylandXdgSurfaceV6 *m_xdgSurface;
+ QWaylandXdgSurfaceV6 *m_xdgSurface = nullptr;
QWaylandXdgToplevelV6 *m_parentToplevel = nullptr;
QList<ConfigureEvent> m_pendingConfigures;
ConfigureEvent m_lastAckedConfigure;
@@ -206,8 +206,8 @@ protected:
void zxdg_popup_v6_grab(Resource *resource, struct ::wl_resource *seat, uint32_t serial) override;
private:
- QWaylandXdgSurfaceV6 *m_xdgSurface;
- QWaylandXdgSurfaceV6 *m_parentXdgSurface;
+ QWaylandXdgSurfaceV6 *m_xdgSurface = nullptr;
+ QWaylandXdgSurfaceV6 *m_parentXdgSurface = nullptr;
QWaylandXdgPositionerV6Data m_positionerData;
QRect m_geometry;
QList<ConfigureEvent> m_pendingConfigures;