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.h | |
| parent | 5e640ac3e2f6d5fb079ff65659a1483ddac8672e (diff) | |
Cleanup: use simpler ownership for FilmViewer.
Diffstat (limited to 'src/wx/video_waveform_dialog.h')
| -rw-r--r-- | src/wx/video_waveform_dialog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/video_waveform_dialog.h b/src/wx/video_waveform_dialog.h index 99a9a566a..e524dc921 100644 --- a/src/wx/video_waveform_dialog.h +++ b/src/wx/video_waveform_dialog.h @@ -34,7 +34,7 @@ class Film; class VideoWaveformDialog : public wxDialog { public: - VideoWaveformDialog (wxWindow* parent, std::weak_ptr<const Film> film, std::weak_ptr<FilmViewer> viewer); + VideoWaveformDialog(wxWindow* parent, std::weak_ptr<const Film> film, FilmViewer& viewer); private: void shown (wxShowEvent &); @@ -42,7 +42,7 @@ private: void contrast_changed (); void mouse_moved (int x1, int x2, int y1, int y2); - std::weak_ptr<FilmViewer> _viewer; + FilmViewer& _viewer; VideoWaveformPlot* _plot; wxChoice* _component; wxSlider* _contrast; |
