diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-11 00:16:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:23 +0100 |
| commit | d95eacd3851a20e52202465ec22b4f72a4983dc8 (patch) | |
| tree | 1dfc1092ae7d2e6b6b7c313ad808415f578d9712 /test/read_smpte_subtitle_test.cc | |
| parent | cbee0d077e698541afcea82a95bafcea5245ab89 (diff) | |
Replace std::list with std::vector in the API.
Diffstat (limited to 'test/read_smpte_subtitle_test.cc')
| -rw-r--r-- | test/read_smpte_subtitle_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/read_smpte_subtitle_test.cc b/test/read_smpte_subtitle_test.cc index 7c367bd4..8fbf0214 100644 --- a/test/read_smpte_subtitle_test.cc +++ b/test/read_smpte_subtitle_test.cc @@ -66,7 +66,7 @@ BOOST_AUTO_TEST_CASE (read_smpte_subtitle_test) BOOST_CHECK_EQUAL (sc.edit_rate(), dcp::Fraction (25, 1)); BOOST_CHECK_EQUAL (sc.time_code_rate(), 25); BOOST_CHECK_EQUAL (sc.start_time(), dcp::Time (0, 0, 0, 0, 25)); - list<shared_ptr<dcp::LoadFontNode> > lfn = sc.load_font_nodes (); + auto lfn = sc.load_font_nodes (); BOOST_REQUIRE_EQUAL (lfn.size(), 1); shared_ptr<dcp::SMPTELoadFontNode> smpte_lfn = dynamic_pointer_cast<dcp::SMPTELoadFontNode> (lfn.front ()); BOOST_REQUIRE (smpte_lfn); @@ -89,7 +89,7 @@ BOOST_AUTO_TEST_CASE (read_smpte_subtitle_test2) dcp::SMPTESubtitleAsset sc (private_test / "olsson.xml"); BOOST_REQUIRE_EQUAL (sc.subtitles().size(), 6); - list<shared_ptr<dcp::Subtitle> >::const_iterator i = sc.subtitles().begin(); + auto i = sc.subtitles().begin(); shared_ptr<dcp::SubtitleString> is = dynamic_pointer_cast<dcp::SubtitleString>(*i); BOOST_REQUIRE (is); BOOST_CHECK_EQUAL (is->text(), "Testing is "); |
