From 05527271f5e1d5f887b7e00d8a7f2be495b36caa Mon Sep 17 00:00:00 2001 From: Nathan Mills Date: Thu, 3 Aug 2023 22:13:58 -0700 Subject: [PATCH] wayland: Fix uninitialized variables. --- src/wayland/xdgshell_interface_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wayland/xdgshell_interface_p.h b/src/wayland/xdgshell_interface_p.h index 86f31ef293..88476e4a0a 100644 --- a/src/wayland/xdgshell_interface_p.h +++ b/src/wayland/xdgshell_interface_p.h @@ -30,7 +30,7 @@ public: static XdgShellInterfacePrivate *get(XdgShellInterface *shell); XdgShellInterface *q; - Display *display; + Display *display = nullptr; QMap pings; protected: @@ -100,7 +100,7 @@ public: void reset(); XdgSurfaceInterface *q; - XdgShellInterface *shell; + XdgShellInterface *shell = nullptr; QPointer toplevel; QPointer popup; QPointer surface; @@ -179,7 +179,7 @@ public: void reset(); XdgPopupInterface *q; - SurfaceInterface *parentSurface; + SurfaceInterface *parentSurface = nullptr; XdgSurfaceInterface *xdgSurface; XdgPositioner positioner;