aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/WindowHost.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-29 00:16:48 +0800
committercrupest <crupest@outlook.com>2020-10-29 00:16:48 +0800
commitc5125e9034a5b05700ed41aee30f43476cb2c7f2 (patch)
tree4056188cda8cdf5e2a2c891ab32289d70d327d2d /include/cru/ui/WindowHost.hpp
parent52594324b302f6e9da10ac01fe803196371bb2d9 (diff)
downloadcru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.tar.gz
cru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.tar.bz2
cru-c5125e9034a5b05700ed41aee30f43476cb2c7f2.zip
...
Diffstat (limited to 'include/cru/ui/WindowHost.hpp')
-rw-r--r--include/cru/ui/WindowHost.hpp8
1 files changed, 4 insertions, 4 deletions
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;
};