C++11 tidying.
[dcpomatic.git] / src / lib / butler.h
index 8c7f554cb800f4ef94a4a40278463748616cc8f8..29966b956b2b491d7c7d82c85f2adc5128842927 100644 (file)
@@ -32,7 +32,7 @@
 class Player;
 class PlayerVideo;
 
-class Butler : public ExceptionStore, public boost::noncopyable
+class Butler : public ExceptionStore
 {
 public:
        Butler (
@@ -40,7 +40,7 @@ public:
                std::shared_ptr<Player> player,
                AudioMapping map,
                int audio_channels,
-               boost::function<AVPixelFormat (AVPixelFormat)> pixel_format,
+               std::function<AVPixelFormat (AVPixelFormat)> pixel_format,
                VideoRange video_range,
                bool aligned,
                bool fast
@@ -48,6 +48,9 @@ public:
 
        ~Butler ();
 
+       Butler (Butler const&) = delete;
+       Butler& operator= (Butler const&) = delete;
+
        void seek (dcpomatic::DCPTime position, bool accurate);
 
        class Error {
@@ -116,7 +119,7 @@ private:
 
        bool _disable_audio;
 
-       boost::function<AVPixelFormat (AVPixelFormat)> _pixel_format;
+       std::function<AVPixelFormat (AVPixelFormat)> _pixel_format;
        VideoRange _video_range;
        bool _aligned;
        bool _fast;