aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/text_render_object.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-03-24 19:44:31 +0800
committercrupest <crupest@outlook.com>2019-03-24 19:44:31 +0800
commitb76e435faca204f830644047077ab08930dc8f9c (patch)
tree8bca146bc7443a704d3cb4b71b36e632cb505c25 /src/ui/render/text_render_object.hpp
parent79d1d76509dbf6cf9c79f8eb55968535982975aa (diff)
downloadcru-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.hpp8
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