diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-12 01:03:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-14 11:41:18 +0200 |
| commit | 449f383f13e5755c523db11f9adef53b58391025 (patch) | |
| tree | 7751c6ede10455de02aa85dcd00d17109c9d57a6 /src/wx/dcp_panel.h | |
| parent | 5e640ac3e2f6d5fb079ff65659a1483ddac8672e (diff) | |
Cleanup: use simpler ownership for FilmViewer.
Diffstat (limited to 'src/wx/dcp_panel.h')
| -rw-r--r-- | src/wx/dcp_panel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/dcp_panel.h b/src/wx/dcp_panel.h index 470f98fc8..31d58e1f8 100644 --- a/src/wx/dcp_panel.h +++ b/src/wx/dcp_panel.h @@ -48,7 +48,7 @@ class SMPTEMetadataDialog; class DCPPanel { public: - DCPPanel (wxNotebook *, std::shared_ptr<Film>, std::weak_ptr<FilmViewer> viewer); + DCPPanel(wxNotebook *, std::shared_ptr<Film>, FilmViewer& viewer); DCPPanel (DCPPanel const&) = delete; DCPPanel& operator= (DCPPanel const&) = delete; @@ -165,6 +165,6 @@ private: SMPTEMetadataDialog* _smpte_metadata_dialog = nullptr; std::shared_ptr<Film> _film; - std::weak_ptr<FilmViewer> _viewer; + FilmViewer& _viewer; bool _generally_sensitive; }; |
