diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-14 22:06:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-14 22:06:05 +0100 |
| commit | 4e4968464eeef1956cb82392e1fc3b27a792ab89 (patch) | |
| tree | 79db245f320df21a075a0fd26de685e02fff6924 /src/wx/content_advanced_dialog.cc | |
| parent | 0ecea9f4d1a772e99f396e47364e68abfbfe9f7f (diff) | |
Add wx_ptr and use it instead of ScopeGuard in a lot of places.
Diffstat (limited to 'src/wx/content_advanced_dialog.cc')
| -rw-r--r-- | src/wx/content_advanced_dialog.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/content_advanced_dialog.cc b/src/wx/content_advanced_dialog.cc index 35343d78d..752fa565a 100644 --- a/src/wx/content_advanced_dialog.cc +++ b/src/wx/content_advanced_dialog.cc @@ -25,13 +25,13 @@ #include "filter_dialog.h" #include "language_tag_widget.h" #include "static_text.h" +#include "wx_ptr.h" #include "wx_util.h" #include "lib/content.h" #include "lib/dcp_content.h" #include "lib/filter.h" #include "lib/ffmpeg_content.h" #include "lib/image_content.h" -#include "lib/scope_guard.h" #include "lib/video_content.h" #include <dcp/warnings.h> LIBDCP_DISABLE_WARNINGS @@ -181,9 +181,7 @@ ContentAdvancedDialog::edit_filters () return; } - auto dialog = new FilterDialog(this, _filters_list); - ScopeGuard sg = [dialog]() { dialog->Destroy(); }; - + auto dialog = make_wx<FilterDialog>(this, _filters_list); dialog->ActiveChanged.connect(bind(&ContentAdvancedDialog::filters_changed, this, _1)); dialog->ShowModal(); } |
