aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/text_render_object.hpp
diff options
context:
space:
mode:
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