Fix install.
[libdcp.git] / test / cpl_sar_test.cc
index 1988fa22a599510be242d57c397b9ee11287c953..65f01900329f8e3bc562fb0cc93755579c2cf238 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014-2019 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
@@ -39,7 +39,8 @@
 #include <boost/test/unit_test.hpp>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
+using std::make_shared;
 
 static void
 check (shared_ptr<dcp::ReelMonoPictureAsset> pa, dcp::Fraction far, string sar)
@@ -47,7 +48,7 @@ check (shared_ptr<dcp::ReelMonoPictureAsset> pa, dcp::Fraction far, string sar)
        pa->set_screen_aspect_ratio (far);
        xmlpp::Document doc;
        xmlpp::Element* el = doc.create_root_node ("Test");
-       pa->write_to_cpl (el, dcp::INTEROP);
+       pa->write_to_cpl (el, dcp::Standard::INTEROP);
 
        cxml::Node node (el);
        BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), sar);
@@ -60,11 +61,8 @@ check (shared_ptr<dcp::ReelMonoPictureAsset> pa, dcp::Fraction far, string sar)
  */
 BOOST_AUTO_TEST_CASE (cpl_sar)
 {
-       shared_ptr<dcp::ReelMonoPictureAsset> pa (
-               new dcp::ReelMonoPictureAsset (
-                       shared_ptr<dcp::MonoPictureAsset> (new dcp::MonoPictureAsset ("test/ref/DCP/dcp_test1/video.mxf")),
-                       0
-                       )
+       auto pa = make_shared<dcp::ReelMonoPictureAsset>(
+               make_shared<dcp::MonoPictureAsset>("test/ref/DCP/dcp_test1/video.mxf"), 0
                );
 
        /* Easy ones */