diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-09 02:06:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-09 17:29:16 +0100 |
| commit | d0308d53dd9f4d036d8c5fe8023920fcdfd43f39 (patch) | |
| tree | 5b37c1db5dc50e541a542663390061f743fe815a /src/wx/text_panel.h | |
| parent | 8d0d9866ae3e0395d899705e27b3806a5de7ef0e (diff) | |
Remove unnecessary wx_ptr
It was only ever used for wxDialog subclasses, which can be
stack-allocated.
Diffstat (limited to 'src/wx/text_panel.h')
| -rw-r--r-- | src/wx/text_panel.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wx/text_panel.h b/src/wx/text_panel.h index 3c6e183dc..e89b9a54d 100644 --- a/src/wx/text_panel.h +++ b/src/wx/text_panel.h @@ -19,19 +19,19 @@ */ -#include "lib/job.h" #include "content_sub_panel.h" -#include "wx_ptr.h" +#include "fonts_dialog.h" +#include "text_view.h" +#include "lib/job.h" class CheckBox; class Choice; -class wxSpinCtrl; class LanguageTagWidget; -class TextView; -class FontsDialog; class SpinCtrl; class SubtitleAnalysis; +class TextView; +class wxSpinCtrl; class TextPanel : public ContentSubPanel @@ -100,9 +100,9 @@ private: wxStaticText* _stream_label; wxChoice* _stream; wxButton* _text_view_button; - wx_ptr<TextView> _text_view; + boost::optional<TextView> _text_view; wxButton* _fonts_dialog_button; - wx_ptr<FontsDialog> _fonts_dialog; + boost::optional<FontsDialog> _fonts_dialog; wxButton* _appearance_dialog_button; TextType _original_type; wxStaticText* _language_label = nullptr; |
