Bump libdcp.
[libsub.git] / src / reader.h
index 989ad58caa1ff6a72f9a235763c17b94a9547c4e..aab73840ab09c0c0cae1e4d7469a956f852a2cc7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2021 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
 #define LIBSUB_READER_H
 
 #include "raw_subtitle.h"
-#include <list>
 #include <map>
 #include <string>
+#include <vector>
+
+struct subrip_reader_convert_line_test;
 
 namespace sub {
 
@@ -33,7 +35,9 @@ namespace sub {
 class Reader
 {
 public:
-       std::list<RawSubtitle> subtitles () const {
+       virtual ~Reader () {}
+
+       std::vector<RawSubtitle> subtitles () const {
                return _subs;
        }
 
@@ -42,9 +46,11 @@ public:
        }
 
 protected:
+       friend struct ::subrip_reader_convert_line_test;
+
        void warn (std::string) const;
 
-       std::list<RawSubtitle> _subs;
+       std::vector<RawSubtitle> _subs;
 };
 
 }