summaryrefslogtreecommitdiff
path: root/src/wx/markers_panel.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-12 01:03:28 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-14 11:41:18 +0200
commit449f383f13e5755c523db11f9adef53b58391025 (patch)
tree7751c6ede10455de02aa85dcd00d17109c9d57a6 /src/wx/markers_panel.h
parent5e640ac3e2f6d5fb079ff65659a1483ddac8672e (diff)
Cleanup: use simpler ownership for FilmViewer.
Diffstat (limited to 'src/wx/markers_panel.h')
-rw-r--r--src/wx/markers_panel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/markers_panel.h b/src/wx/markers_panel.h
index 23cc860c1..e34008a41 100644
--- a/src/wx/markers_panel.h
+++ b/src/wx/markers_panel.h
@@ -34,7 +34,7 @@ class wxTipWindow;
class MarkersPanel : public wxPanel
{
public:
- MarkersPanel (wxWindow* parent, std::weak_ptr<FilmViewer> viewer);
+ MarkersPanel(wxWindow* parent, FilmViewer& viewer);
void set_film (std::weak_ptr<Film> film);
@@ -69,7 +69,7 @@ private:
std::weak_ptr<Film> _film;
std::map<dcp::Marker, Marker> _markers;
boost::optional<dcp::Marker> _over;
- std::weak_ptr<FilmViewer> _viewer;
+ FilmViewer& _viewer;
boost::optional<dcp::Marker> _menu_marker;
};