C++11 tidying.
authorCarl Hetherington <cth@carlh.net>
Wed, 27 Oct 2021 21:23:11 +0000 (23:23 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 27 Oct 2021 21:23:11 +0000 (23:23 +0200)
test/subtitle_reel_test.cc

index 4a2021ba96ed136ba45533b733507b6df62d8857..da6ae8a30fb09a3ce6025d5b97e4715f339cb604 100644 (file)
 #include <boost/test/unit_test.hpp>
 
 
-using std::list;
 using std::string;
 using std::shared_ptr;
 using std::make_shared;
-using boost::optional;
 
 
 /* Check that timings are done correctly for multi-reel DCPs with PNG subs */
@@ -72,7 +70,7 @@ BOOST_AUTO_TEST_CASE (subtitle_reel_test)
        dcp::DCP dcp ("build/test/subtitle_reel_test/" + film->dcp_name());
        dcp.read ();
        BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 1U);
-       shared_ptr<dcp::CPL> cpl = dcp.cpls().front();
+       auto cpl = dcp.cpls().front();
 
        auto reels = cpl->reels ();
        BOOST_REQUIRE_EQUAL (reels.size(), 2U);