Make some methods private.
authorCarl Hetherington <cth@carlh.net>
Sun, 28 Jun 2020 21:12:59 +0000 (23:12 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 28 Jun 2020 21:13:04 +0000 (23:13 +0200)
src/wx/gl_video_view.h
src/wx/simple_video_view.h

index b91078da03a1efe537cf054d67ea2c1c34d14fdc..713f965552321ff13e39025acb640681fcf02192 100644 (file)
@@ -36,7 +36,6 @@ public:
        GLVideoView (FilmViewer* viewer, wxWindow* parent);
        ~GLVideoView ();
 
-       void set_image (boost::shared_ptr<const Image> image);
        wxWindow* get () const {
                return _canvas;
        }
@@ -51,6 +50,7 @@ public:
        }
 
 private:
+       void set_image (boost::shared_ptr<const Image> image);
        void set_image_and_draw ();
        void draw (Position<int> inter_position, dcp::Size inter_size);
        void thread ();
index a6a5cf47f1783b44235c9d771c6d359ff642b6d6..643c782b80d554fa441c391ff40315c7fcbc38e3 100644 (file)
@@ -30,10 +30,6 @@ class SimpleVideoView : public VideoView
 public:
        SimpleVideoView (FilmViewer* viewer, wxWindow* parent);
 
-       void set_image (boost::shared_ptr<const Image> 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<const Image> image) {
+               _image = image;
+       }
+
        void refresh_panel ();
        void paint ();
        void timer ();