summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandsubsurface_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/client/qwaylandsubsurface_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/client/qwaylandsubsurface_p.h')
-rw-r--r--src/client/qwaylandsubsurface_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/qwaylandsubsurface_p.h b/src/client/qwaylandsubsurface_p.h
index 36a92a755..a9fd76a88 100644
--- a/src/client/qwaylandsubsurface_p.h
+++ b/src/client/qwaylandsubsurface_p.h
@@ -86,8 +86,8 @@ private:
// to keep track of the sync state
void set_sync();
void set_desync();
- QWaylandWindow *m_window;
- QWaylandWindow *m_parent;
+ QWaylandWindow *m_window = nullptr;
+ QWaylandWindow *m_parent = nullptr;
bool m_synchronized = false;
QMutex m_syncLock;