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/stl_binary_writer.cc | |
| parent | 18f00cbcdab8eaf3db1cb5a7fba3ed78bea565fa (diff) | |
Replace list with vector in most of the API.
Diffstat (limited to 'src/stl_binary_writer.cc')
| -rw-r--r-- | src/stl_binary_writer.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc index adb9e11..4a16ce0 100644 --- a/src/stl_binary_writer.cc +++ b/src/stl_binary_writer.cc @@ -30,14 +30,12 @@ #include <boost/locale.hpp> #include <boost/algorithm/string.hpp> #include <boost/foreach.hpp> -#include <list> #include <cmath> #include <fstream> -#include <vector> #include <iomanip> #include <set> +#include <vector> -using std::list; using std::set; using std::ofstream; using std::string; @@ -149,7 +147,7 @@ vertical_position (sub::Line const & line) } vector<char*> -make_tti_blocks (list<Subtitle> const& subtitles, STLBinaryTables const& tables, float frames_per_second) +make_tti_blocks (vector<Subtitle> const& subtitles, STLBinaryTables const& tables, float frames_per_second) { static int const tti_size = 128; vector<char*> tti; @@ -287,9 +285,9 @@ make_tti_blocks (list<Subtitle> const& subtitles, STLBinaryTables const& tables, /** @param language ISO 3-character country code for the language of the subtitles */ - void +void sub::write_stl_binary ( - list<Subtitle> subtitles, + vector<Subtitle> subtitles, float frames_per_second, Language language, string original_programme_title, |
