diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:32:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 23:27:56 +0100 |
| commit | a5d004b0773f633401528392fc28e66d70e13ac8 (patch) | |
| tree | 9f83ff2ab353f5a63918210d4930d0ead228375e /test/subtitle_reel_test.cc | |
| parent | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff) | |
BOOST_FOREACH.
Diffstat (limited to 'test/subtitle_reel_test.cc')
| -rw-r--r-- | test/subtitle_reel_test.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/subtitle_reel_test.cc b/test/subtitle_reel_test.cc index 6e55ee62f..2eee36ffa 100644 --- a/test/subtitle_reel_test.cc +++ b/test/subtitle_reel_test.cc @@ -31,7 +31,6 @@ #include <dcp/interop_subtitle_asset.h> #include <dcp/reel_closed_caption_asset.h> #include <dcp/reel_subtitle_asset.h> -#include <boost/foreach.hpp> #include <boost/test/unit_test.hpp> @@ -125,7 +124,7 @@ BOOST_AUTO_TEST_CASE (subtitle_in_all_reels_test) shared_ptr<dcp::CPL> cpl = dcp.cpls().front(); BOOST_REQUIRE_EQUAL (cpl->reels().size(), 3U); - BOOST_FOREACH (shared_ptr<dcp::Reel> i, cpl->reels()) { + for (auto i: cpl->reels()) { BOOST_CHECK (i->main_subtitle()); } } @@ -170,7 +169,7 @@ BOOST_AUTO_TEST_CASE (closed_captions_in_all_reels_test) shared_ptr<dcp::CPL> cpl = dcp.cpls().front(); BOOST_REQUIRE_EQUAL (cpl->reels().size(), 3U); - BOOST_FOREACH (shared_ptr<dcp::Reel> i, cpl->reels()) { + for (auto i: cpl->reels()) { BOOST_REQUIRE_EQUAL (i->closed_captions().size(), 2U); optional<string> first = i->closed_captions().front()->language(); optional<string> second = i->closed_captions().back()->language(); |
