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/timeline.h | |
| parent | 5e640ac3e2f6d5fb079ff65659a1483ddac8672e (diff) | |
Cleanup: use simpler ownership for FilmViewer.
Diffstat (limited to 'src/wx/timeline.h')
| -rw-r--r-- | src/wx/timeline.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 24c046a6a..797b32a55 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -42,7 +42,7 @@ class TimelineView; class Timeline : public wxPanel { public: - Timeline (wxWindow *, ContentPanel *, std::shared_ptr<Film>, std::weak_ptr<FilmViewer> viewer); + Timeline (wxWindow *, ContentPanel *, std::shared_ptr<Film>, FilmViewer& viewer); std::shared_ptr<const Film> film () const; @@ -118,7 +118,7 @@ private: wxScrolledCanvas* _main_canvas; ContentPanel* _content_panel; std::weak_ptr<Film> _film; - std::weak_ptr<FilmViewer> _viewer; + FilmViewer& _viewer; TimelineViewList _views; std::shared_ptr<TimelineTimeAxisView> _time_axis_view; std::shared_ptr<TimelineReelsView> _reels_view; |
