X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fplayer_information.h;h=0dd6c4ad0e8f9c41f584b90ca43d729afc291dc2;hb=bb5acc8b8d783a4133b0b10285937d9151dc57c9;hp=f82cd7aa4b1d2198afc531ff11dee20a96b32361;hpb=54ef7357a87885ec329a25e758fb6b132816ec67;p=dcpomatic.git diff --git a/src/wx/player_information.h b/src/wx/player_information.h index f82cd7aa4..0dd6c4ad0 100644 --- a/src/wx/player_information.h +++ b/src/wx/player_information.h @@ -18,15 +18,18 @@ */ +#include "lib/warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include +DCPOMATIC_ENABLE_WARNINGS #include -class ControlFilmViewer; +class FilmViewer; class PlayerInformation : public wxPanel { public: - PlayerInformation (wxWindow* parent, ControlFilmViewer* viewer); + PlayerInformation (wxWindow* parent, std::weak_ptr viewer); void triggered_update (); @@ -34,7 +37,7 @@ private: void periodic_update (); - ControlFilmViewer* _viewer; + std::weak_ptr _viewer; wxSizer* _sizer; wxStaticText** _dcp; wxStaticText* _dropped;