From 2975fa5cd5dcfaa806b07ef39c8900e07f417658 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 31 May 2022 21:02:42 +0200 Subject: Switch some list -> vector for consistency. --- src/lib/text_decoder.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lib/text_decoder.cc') diff --git a/src/lib/text_decoder.cc b/src/lib/text_decoder.cc index d5afb555d..776e39c78 100644 --- a/src/lib/text_decoder.cc +++ b/src/lib/text_decoder.cc @@ -19,22 +19,22 @@ */ -#include "text_decoder.h" +#include "compose.hpp" +#include "log.h" #include "text_content.h" +#include "text_decoder.h" #include "util.h" -#include "log.h" -#include "compose.hpp" #include #include #include -using std::list; using std::cout; -using std::string; -using std::min; using std::max; +using std::min; using std::shared_ptr; +using std::string; +using std::vector; using boost::optional; using namespace dcpomatic; @@ -68,7 +68,7 @@ TextDecoder::emit_bitmap_start (ContentBitmapText const& bitmap) void -TextDecoder::emit_plain_start (ContentTime from, list s) +TextDecoder::emit_plain_start (ContentTime from, vector s) { for (auto& i: s) { /* We must escape some things, otherwise they might confuse our subtitle @@ -130,7 +130,7 @@ TextDecoder::emit_plain_start (ContentTime from, sub::Subtitle const & subtitle) } } - list out; + vector out; for (auto i: subtitle.lines) { for (auto j: i.blocks) { @@ -266,7 +266,7 @@ TextDecoder::emit_stop (ContentTime to) void -TextDecoder::emit_plain (ContentTimePeriod period, list s) +TextDecoder::emit_plain (ContentTimePeriod period, vector s) { emit_plain_start (period.from, s); emit_stop (period.to); -- cgit v1.2.3