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/video_waveform_dialog.cc | |
| parent | 5e640ac3e2f6d5fb079ff65659a1483ddac8672e (diff) | |
Cleanup: use simpler ownership for FilmViewer.
Diffstat (limited to 'src/wx/video_waveform_dialog.cc')
| -rw-r--r-- | src/wx/video_waveform_dialog.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/video_waveform_dialog.cc b/src/wx/video_waveform_dialog.cc index 3177f48cb..73ccc82df 100644 --- a/src/wx/video_waveform_dialog.cc +++ b/src/wx/video_waveform_dialog.cc @@ -35,7 +35,7 @@ using namespace boost::placeholders; #endif -VideoWaveformDialog::VideoWaveformDialog (wxWindow* parent, weak_ptr<const Film> film, weak_ptr<FilmViewer> viewer) +VideoWaveformDialog::VideoWaveformDialog(wxWindow* parent, weak_ptr<const Film> film, FilmViewer& viewer) : wxDialog ( parent, wxID_ANY, @@ -112,9 +112,7 @@ VideoWaveformDialog::shown (wxShowEvent& ev) { _plot->set_enabled (ev.IsShown ()); if (ev.IsShown ()) { - shared_ptr<FilmViewer> fv = _viewer.lock (); - DCPOMATIC_ASSERT (fv); - fv->slow_refresh (); + _viewer.slow_refresh(); } } |
