From 338832dffc6adc660eb959952712359b02b56f6e Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Wed, 19 Aug 2020 13:10:23 +0900 Subject: [PATCH] DSWaylandZxdg*: initialize member variables @ constructor Change-Id: Ic8f3026caa343df75042c4d967e2159f1a24f9f4 Signed-off-by: Sung-Jin Park --- src/DSWaylandServer/DSWaylandZxdgShellV6.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp index 76b3758..70d122d 100644 --- a/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp @@ -490,7 +490,9 @@ void DSWaylandZxdgToplevelV6::sendConfigure(unsigned int w, unsigned int h) } DSWaylandZxdgToplevelV6Private::DSWaylandZxdgToplevelV6Private(DSWaylandZxdgToplevelV6 *p_ptr) - : DSObjectPrivate(p_ptr), __p_ptr(p_ptr) + : DSObjectPrivate(p_ptr), + __p_ptr(p_ptr), + __zxdgSurface(nullptr) { } @@ -613,7 +615,9 @@ void DSWaylandZxdgPopupV6::sendConfigure(int x, int y, unsigned int w, unsigned } DSWaylandZxdgPopupV6Private::DSWaylandZxdgPopupV6Private(DSWaylandZxdgPopupV6 *p_ptr) - : DSObjectPrivate(p_ptr), __p_ptr(p_ptr) + : DSObjectPrivate(p_ptr), + __p_ptr(p_ptr), + __zxdgSurface(nullptr) { } -- 2.7.4