libdcp API fixes for macOS/Windows.
[dcpomatic.git] / test / subtitle_reel_number_test.cc
index 0726ee2e418bcb76310669b52a0eba07c2e50b09..d8c596c9468d2fc825be0573ed675e9a11fe2ba6 100644 (file)
@@ -33,8 +33,8 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
 
 /* Check that ReelNumber is setup correctly when making multi-reel subtitled DCPs */
 BOOST_AUTO_TEST_CASE (subtitle_reel_number_test)
@@ -56,12 +56,12 @@ BOOST_AUTO_TEST_CASE (subtitle_reel_number_test)
 
        dcp::DCP dcp ("build/test/subtitle_reel_number_test/" + film->dcp_name());
        dcp.read ();
-       BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 1);
+       BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 1U);
        shared_ptr<dcp::CPL> cpl = dcp.cpls().front();
-       BOOST_REQUIRE_EQUAL (cpl->reels().size(), 6);
+       BOOST_REQUIRE_EQUAL (cpl->reels().size(), 6U);
 
        int n = 1;
-       BOOST_FOREACH (shared_ptr<dcp::Reel> i, cpl->reels()) {
+       for (auto i: cpl->reels()) {
                if (i->main_subtitle()) {
                        shared_ptr<dcp::InteropSubtitleAsset> ass = dynamic_pointer_cast<dcp::InteropSubtitleAsset>(i->main_subtitle()->asset());
                        BOOST_REQUIRE (ass);