From cafee6f81257fa81ee302b5d3ffa82213a0a6a44 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 13 Jan 2021 13:04:04 +0100 Subject: Replace list with vector in most of the API. --- src/stl_binary_writer.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/stl_binary_writer.cc') 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 #include #include -#include #include #include -#include #include #include +#include -using std::list; using std::set; using std::ofstream; using std::string; @@ -149,7 +147,7 @@ vertical_position (sub::Line const & line) } vector -make_tti_blocks (list const& subtitles, STLBinaryTables const& tables, float frames_per_second) +make_tti_blocks (vector const& subtitles, STLBinaryTables const& tables, float frames_per_second) { static int const tti_size = 128; vector tti; @@ -287,9 +285,9 @@ make_tti_blocks (list 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 subtitles, + vector subtitles, float frames_per_second, Language language, string original_programme_title, -- cgit v1.2.3