Assorted C++11 tidying.
[dcpomatic.git] / src / lib / state.h
index 35a93f52d5d30239eca39b8de24e378f99911870..f1ed775a2b2df00a8b1ef3445e1a329dbf5f18e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2018-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #ifndef DCPOMATIC_STATE_H
 #define DCPOMATIC_STATE_H
 
-#include <boost/noncopyable.hpp>
+
 #include <boost/filesystem.hpp>
 #include <boost/optional.hpp>
 
-class State : public boost::noncopyable
+
+class State
 {
 public:
+       State () {}
        virtual ~State () {}
        virtual void read () = 0;
        virtual void write () const = 0;
 
+       State (State const&) = delete;
+       State& operator= (State const&) = delete;
+
        /** If set, this overrides the standard path (in home, Library, AppData or wherever) for config.xml, cinemas.xml etc. */
        static boost::optional<boost::filesystem::path> override_path;
        static boost::filesystem::path path (std::string file, bool create_directories = true);
 };
 
+
 #endif