Stop using static initialisation so that dcpomatic::write() can be called more than...
[dcpomatic.git] / src / lib / dcp_content_type.h
index 03a52e57ce00053a0d122b2a9eee93566e22128a..117ff3b16d79a0b3029c3d7ac3a9656fef0ea831 100644 (file)
@@ -41,9 +41,6 @@ class DCPContentType
 public:
        DCPContentType (std::string, dcp::ContentKind, std::string);
 
-       DCPContentType (DCPContentType const&) = delete;
-       DCPContentType& operator= (DCPContentType const&) = delete;
-
        /** @return user-visible `pretty' name */
        std::string pretty_name () const {
                return _pretty_name;
@@ -70,7 +67,7 @@ private:
        std::string _isdcf_name;
 
        /** All available DCP content types */
-       static std::vector<DCPContentType const *> _dcp_content_types;
+       static std::vector<DCPContentType> _dcp_content_types;
 };