More noncopyable.
[dcpomatic.git] / src / lib / writer.h
index 62714edf39f675e6354510434618e695a214576c..1e5d864898e8457380ce5622520b7579f8141da5 100644 (file)
@@ -61,10 +61,10 @@ public:
 bool operator< (QueueItem const & a, QueueItem const & b);
 bool operator== (QueueItem const & a, QueueItem const & b);
 
-class Writer : public ExceptionStore
+class Writer : public ExceptionStore, public boost::noncopyable
 {
 public:
-       Writer (boost::shared_ptr<Film>, boost::shared_ptr<Job>);
+       Writer (boost::shared_ptr<const Film>, boost::shared_ptr<Job>);
 
        bool can_fake_write (int) const;
        
@@ -80,7 +80,7 @@ private:
        void check_existing_picture_mxf ();
 
        /** our Film */
-       boost::shared_ptr<Film> _film;
+       boost::shared_ptr<const Film> _film;
        boost::shared_ptr<Job> _job;
        /** the first frame index that does not already exist in our MXF */
        int _first_nonexistant_frame;