projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hide warnings triggered by Ubuntu 20.04's gcc.
[dcpomatic.git]
/
src
/
wx
/
player_information.h
diff --git
a/src/wx/player_information.h
b/src/wx/player_information.h
index 747cd5a20a0acd12ea03c6795541683c7eb0fe4a..ae3e134295f3442694a1dceda5fcff9816f83d32 100644
(file)
--- a/
src/wx/player_information.h
+++ b/
src/wx/player_information.h
@@
-18,15
+18,19
@@
*/
*/
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
#include <wx/wx.h>
#include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
#include <boost/scoped_ptr.hpp>
#include <boost/scoped_ptr.hpp>
+#include <boost/weak_ptr.hpp>
class FilmViewer;
class PlayerInformation : public wxPanel
{
public:
class FilmViewer;
class PlayerInformation : public wxPanel
{
public:
- PlayerInformation (wxWindow* parent,
FilmViewer*
viewer);
+ PlayerInformation (wxWindow* parent,
boost::weak_ptr<FilmViewer>
viewer);
void triggered_update ();
void triggered_update ();
@@
-34,7
+38,7
@@
private:
void periodic_update ();
void periodic_update ();
-
FilmViewer*
_viewer;
+
boost::weak_ptr<FilmViewer>
_viewer;
wxSizer* _sizer;
wxStaticText** _dcp;
wxStaticText* _dropped;
wxSizer* _sizer;
wxStaticText** _dcp;
wxStaticText* _dropped;