Use boost::noncopyable.
authorCarl Hetherington <cth@carlh.net>
Sun, 24 Apr 2016 23:38:19 +0000 (00:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 24 Apr 2016 23:38:19 +0000 (00:38 +0100)
src/tools/dcpomatic.cc

index 4814d08a4f1a896133f61d48b11705574eb271dd..6a94c4583dd5d5927b75e8de6ed403abebfa93c2 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -69,6 +69,7 @@
 #include <ApplicationServices/ApplicationServices.h>
 #endif
 #include <boost/filesystem.hpp>
+#include <boost/noncopyable.hpp>
 #include <iostream>
 #include <fstream>
 #include <sstream>
@@ -90,7 +91,7 @@ using std::exception;
 using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 
-class FilmChangedDialog
+class FilmChangedDialog : public boost::noncopyable
 {
 public:
        FilmChangedDialog (string name)
@@ -116,9 +117,6 @@ public:
        }
 
 private:
-       /* Not defined */
-       FilmChangedDialog (FilmChangedDialog const &);
-
        wxMessageDialog* _dialog;
 };