diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-14 22:50:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-14 22:50:14 +0100 |
| commit | 732ce79ef10c58c129a8b9822fad9955a97a153d (patch) | |
| tree | 1fab563ca03ca2be09ea9cf8126a0ce1625b6e49 /src/wx/content_menu.h | |
| parent | e6725d6b0fc1a00fbcf35c1dda2c670f349f6a36 (diff) | |
Use wx_ptr for AutoCropDialog
Diffstat (limited to 'src/wx/content_menu.h')
| -rw-r--r-- | src/wx/content_menu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/content_menu.h b/src/wx/content_menu.h index 783a5be04..c750ae852 100644 --- a/src/wx/content_menu.h +++ b/src/wx/content_menu.h @@ -23,7 +23,9 @@ #define DCPOMATIC_CONTENT_MENU_H +#include "auto_crop_dialog.h" #include "timeline_content_view.h" +#include "wx_ptr.h" #include "lib/types.h" #include <dcp/warnings.h> LIBDCP_DISABLE_WARNINGS @@ -32,7 +34,6 @@ LIBDCP_ENABLE_WARNINGS #include <memory> -class AutoCropDialog; class DCPContent; class Film; class FilmViewer; @@ -85,7 +86,7 @@ private: wxMenuItem* _set_dcp_settings; wxMenuItem* _remove; - AutoCropDialog* _auto_crop_dialog = nullptr; + wx_ptr<AutoCropDialog> _auto_crop_dialog; boost::signals2::scoped_connection _auto_crop_config_connection; boost::signals2::scoped_connection _auto_crop_viewer_connection; }; |
