Fix typo in log message.
[dcpomatic.git] / src / lib / cinema_sound_processor.h
index aa0ffa50f45c5faf77da02a85ab0ff2ec503bfe3..3ccaa5c9b35c3195603f497bc82f21b1e03c5594 100644 (file)
@@ -29,6 +29,7 @@
 
 
 #include <boost/utility.hpp>
+#include <memory>
 #include <string>
 #include <vector>
 
@@ -46,7 +47,7 @@ public:
        virtual ~CinemaSoundProcessor () {}
 
        CinemaSoundProcessor (CinemaSoundProcessor const&) = delete;
-       CinemaSoundProcessor& operator==(CinemaSoundProcessor const&) = delete;
+       CinemaSoundProcessor& operator=(CinemaSoundProcessor const&) = delete;
 
        float db_for_fader_change (float from, float to) const;
 
@@ -64,7 +65,6 @@ public:
        static void setup_cinema_sound_processors ();
        static CinemaSoundProcessor const * from_id (std::string id);
        static CinemaSoundProcessor const * from_index (int);
-       static int as_index (CinemaSoundProcessor const *);
 
 private:
        /** id for our use */
@@ -75,8 +75,8 @@ private:
        float _below;
        float _above;
 
-       /** sll available cinema sound processors */
-       static std::vector<CinemaSoundProcessor const *> _cinema_sound_processors;
+       /** all available cinema sound processors */
+       static std::vector<std::unique_ptr<const CinemaSoundProcessor>> _cinema_sound_processors;
 };