summaryrefslogtreecommitdiff
path: root/src/wx/audio_dialog.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/audio_dialog.h
parent5e640ac3e2f6d5fb079ff65659a1483ddac8672e (diff)
Cleanup: use simpler ownership for FilmViewer.
Diffstat (limited to 'src/wx/audio_dialog.h')
-rw-r--r--src/wx/audio_dialog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h
index a202ad65b..746b23f40 100644
--- a/src/wx/audio_dialog.h
+++ b/src/wx/audio_dialog.h
@@ -37,7 +37,7 @@ class Film;
class AudioDialog : public wxDialog
{
public:
- AudioDialog (wxWindow* parent, std::shared_ptr<Film> film, std::weak_ptr<FilmViewer> viewer, std::shared_ptr<Content> content = std::shared_ptr<Content>());
+ AudioDialog(wxWindow* parent, std::shared_ptr<Film> film, FilmViewer& viewer, std::shared_ptr<Content> content = std::shared_ptr<Content>());
bool Show (bool show = true) override;
@@ -56,7 +56,7 @@ private:
std::shared_ptr<AudioAnalysis> _analysis;
std::weak_ptr<Film> _film;
- std::weak_ptr<FilmViewer> _viewer;
+ FilmViewer& _viewer;
/** content to analyse, or 0 to analyse all the film's content */
std::weak_ptr<Content> _content;
int _channels;