From 90472012efd9a4b4a4d3a0cb4e7a0d2c42d746da Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Wed, 19 Aug 2020 14:55:13 +0900 Subject: [PATCH] DSWaylandOutput: initialize member variables @ constructor Change-Id: Ic3bb02ea09a10a2aa6b40e2cf8624ec24f885f9e Signed-off-by: Sung-Jin Park --- src/DSWaylandServer/DSWaylandOutput.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/DSWaylandServer/DSWaylandOutput.cpp b/src/DSWaylandServer/DSWaylandOutput.cpp index 067f353..7216dbb 100644 --- a/src/DSWaylandServer/DSWaylandOutput.cpp +++ b/src/DSWaylandServer/DSWaylandOutput.cpp @@ -31,7 +31,14 @@ namespace display_server DSWaylandOutputPrivate::DSWaylandOutputPrivate(DSWaylandOutput *p_ptr, DSWaylandCompositor *compositor) : DSObjectPrivate(p_ptr), - __p_ptr(p_ptr) + __p_ptr(p_ptr), + __outputRect({0,0,0,0}), + __phyWidth(0), + __phyHeight(0), + __refresh(0), + __subpixel(0), + __transform(0), + __scale(1.0) { if (!compositor) return; -- 2.7.4