diff options
author | crupest <crupest@outlook.com> | 2019-03-24 19:44:31 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-24 19:44:31 +0800 |
commit | b76e435faca204f830644047077ab08930dc8f9c (patch) | |
tree | 8bca146bc7443a704d3cb4b71b36e632cb505c25 /src/ui/render/text_render_object.hpp | |
parent | 79d1d76509dbf6cf9c79f8eb55968535982975aa (diff) | |
download | cru-b76e435faca204f830644047077ab08930dc8f9c.tar.gz cru-b76e435faca204f830644047077ab08930dc8f9c.tar.bz2 cru-b76e435faca204f830644047077ab08930dc8f9c.zip |
...
Diffstat (limited to 'src/ui/render/text_render_object.hpp')
-rw-r--r-- | src/ui/render/text_render_object.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/render/text_render_object.hpp b/src/ui/render/text_render_object.hpp index 30d78736..db102b04 100644 --- a/src/ui/render/text_render_object.hpp +++ b/src/ui/render/text_render_object.hpp @@ -59,11 +59,11 @@ class TextRenderObject : public RenderObject { private: String text_; - ID2D1Brush* brush_; - IDWriteTextFormat* text_format_; - IDWriteTextLayout* text_layout_; + ID2D1Brush* brush_ = nullptr; + IDWriteTextFormat* text_format_ = nullptr; + IDWriteTextLayout* text_layout_ = nullptr; std::optional<TextRange> selection_range_ = std::nullopt; - ID2D1Brush* selection_brush_; + ID2D1Brush* selection_brush_ = nullptr; }; } // namespace cru::ui::render |