Bump asdcplib for more logging.
[libsub.git] / src / reader.h
index 235fa81981c3cd9d692ecd088dd426b593746a05..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
@@ -21,9 +21,9 @@
 #define LIBSUB_READER_H
 
 #include "raw_subtitle.h"
-#include <list>
 #include <map>
 #include <string>
+#include <vector>
 
 struct subrip_reader_convert_line_test;
 
@@ -35,7 +35,9 @@ namespace sub {
 class Reader
 {
 public:
-       std::list<RawSubtitle> subtitles () const {
+       virtual ~Reader () {}
+
+       std::vector<RawSubtitle> subtitles () const {
                return _subs;
        }
 
@@ -48,7 +50,7 @@ protected:
 
        void warn (std::string) const;
 
-       std::list<RawSubtitle> _subs;
+       std::vector<RawSubtitle> _subs;
 };
 
 }