From: Carl Hetherington Date: Sun, 28 Jun 2020 21:12:59 +0000 (+0200) Subject: Make some methods private. X-Git-Tag: v2.15.85~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=ef5be12ec33d0a7e5348979c7db8088dd3afab47 Make some methods private. --- diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h index b91078da0..713f96555 100644 --- a/src/wx/gl_video_view.h +++ b/src/wx/gl_video_view.h @@ -36,7 +36,6 @@ public: GLVideoView (FilmViewer* viewer, wxWindow* parent); ~GLVideoView (); - void set_image (boost::shared_ptr image); wxWindow* get () const { return _canvas; } @@ -51,6 +50,7 @@ public: } private: + void set_image (boost::shared_ptr image); void set_image_and_draw (); void draw (Position inter_position, dcp::Size inter_size); void thread (); diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h index a6a5cf47f..643c782b8 100644 --- a/src/wx/simple_video_view.h +++ b/src/wx/simple_video_view.h @@ -30,10 +30,6 @@ class SimpleVideoView : public VideoView public: SimpleVideoView (FilmViewer* viewer, wxWindow* parent); - void set_image (boost::shared_ptr image) { - _image = image; - } - wxWindow* get () const { return _panel; } @@ -43,6 +39,10 @@ public: bool display_next_frame (bool non_blocking); private: + void set_image (boost::shared_ptr image) { + _image = image; + } + void refresh_panel (); void paint (); void timer ();