diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-13 13:04:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-13 13:04:04 +0100 |
| commit | cafee6f81257fa81ee302b5d3ffa82213a0a6a44 (patch) | |
| tree | 87797f282d0bc1ca62aed44cbf98528ebeb4be86 /src/reader.h | |
| parent | 18f00cbcdab8eaf3db1cb5a7fba3ed78bea565fa (diff) | |
Replace list with vector in most of the API.
Diffstat (limited to 'src/reader.h')
| -rw-r--r-- | src/reader.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reader.h b/src/reader.h index 08474f6..aab7384 100644 --- a/src/reader.h +++ b/src/reader.h @@ -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; @@ -37,7 +37,7 @@ class Reader public: virtual ~Reader () {} - std::list<RawSubtitle> subtitles () const { + std::vector<RawSubtitle> subtitles () const { return _subs; } @@ -50,7 +50,7 @@ protected: void warn (std::string) const; - std::list<RawSubtitle> _subs; + std::vector<RawSubtitle> _subs; }; } |
