summaryrefslogtreecommitdiff
path: root/src/wx/text_panel.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-15 00:16:30 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-15 00:16:30 +0100
commitfcaf62b405f6379e7030ddc2a38426c5f9ffb081 (patch)
tree2399fc7e4b3b33083ce55b299def818731065df7 /src/wx/text_panel.h
parente6c2c489924fbe2f8db70030f1774541a819d46c (diff)
Use wx_ptr some more.
Diffstat (limited to 'src/wx/text_panel.h')
-rw-r--r--src/wx/text_panel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/text_panel.h b/src/wx/text_panel.h
index dc8f685f1..52ef4d1fc 100644
--- a/src/wx/text_panel.h
+++ b/src/wx/text_panel.h
@@ -20,6 +20,7 @@
#include "content_sub_panel.h"
+#include "wx_ptr.h"
class CheckBox;
@@ -100,9 +101,9 @@ private:
wxStaticText* _stream_label;
wxChoice* _stream;
wxButton* _text_view_button;
- TextView* _text_view = nullptr;
+ wx_ptr<TextView> _text_view;
wxButton* _fonts_dialog_button;
- FontsDialog* _fonts_dialog = nullptr;
+ wx_ptr<FontsDialog> _fonts_dialog;
wxButton* _appearance_dialog_button;
TextType _original_type;
wxStaticText* _language_label = nullptr;