C++11 tidying.
[dcpomatic.git] / src / lib / dcp_subtitle_decoder.h
index 31b8e6a8e557656e040ab4746a22855074b54869..95e783d0612a9876ec5f40050240bbd1e3bb03af 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014-2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #include "text_decoder.h"
 #include "dcp_subtitle.h"
 #include "font_data.h"
 
+
 class DCPSubtitleContent;
 
+
 class DCPSubtitleDecoder : public DCPSubtitle, public Decoder
 {
 public:
@@ -35,10 +38,10 @@ public:
        std::vector<dcpomatic::FontData> fonts () const;
 
 private:
-       dcpomatic::ContentTimePeriod content_time_period (std::shared_ptr<dcp::Subtitle> s) const;
+       dcpomatic::ContentTimePeriod content_time_period (std::shared_ptr<const dcp::Subtitle> s) const;
 
-       std::list<std::shared_ptr<dcp::Subtitle> > _subtitles;
-       std::list<std::shared_ptr<dcp::Subtitle> >::const_iterator _next;
+       std::vector<std::shared_ptr<const dcp::Subtitle>> _subtitles;
+       std::vector<std::shared_ptr<const dcp::Subtitle>>::const_iterator _next;
 
        std::vector<dcpomatic::FontData> _fonts;
 };