From c5125e9034a5b05700ed41aee30f43476cb2c7f2 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 29 Oct 2020 00:16:48 +0800 Subject: ... --- include/cru/ui/WindowHost.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/cru/ui/WindowHost.hpp b/include/cru/ui/WindowHost.hpp index 8efb505d..c3221dcf 100644 --- a/include/cru/ui/WindowHost.hpp +++ b/include/cru/ui/WindowHost.hpp @@ -120,10 +120,10 @@ class WindowHost : public Object { bool no_enter); private: - Control* root_control_; - render::RenderObject* root_render_object_; + Control* root_control_ = nullptr; + render::RenderObject* root_render_object_ = nullptr; - platform::native::INativeWindow* native_window_; + platform::native::INativeWindow* native_window_ = nullptr; bool need_layout_ = false; platform::native::TimerAutoCanceler relayout_timer_canceler_; @@ -136,7 +136,7 @@ class WindowHost : public Object { Control* focus_control_; - Control* mouse_captured_control_; + Control* mouse_captured_control_ = nullptr; bool layout_prefer_to_fill_window_ = true; }; -- cgit v1.2.3