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