From 1fab644753443a525475740fc23172dedaa70d0e Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Tue, 27 Feb 2018 16:21:17 +0100 Subject: Use default member initialization for raw pointers Initialize to nullptr to prevent undefined behavior. Change-Id: I7753c0be77a886d62ecb1cd7b86fc8c98340b0b8 Reviewed-by: Paul Olav Tvete Reviewed-by: Shawn Rutledge --- .../client/xcomposite-glx/qwaylandxcompositeglxwindow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxwindow.h') diff --git a/src/hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxwindow.h b/src/hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxwindow.h index c2df592e..45a77a29 100644 --- a/src/hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxwindow.h +++ b/src/hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxwindow.h @@ -67,7 +67,7 @@ public: private: void createSurface(); - QWaylandXCompositeGLXIntegration *m_glxIntegration; + QWaylandXCompositeGLXIntegration *m_glxIntegration = nullptr; Window m_xWindow = 0; GLXFBConfig m_config; -- cgit v1.2.1