X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Fvideo_mxf_content_test.cc;h=4759cb69ce5e2177745050b8f36fb25e5ee5796a;hp=953e9b7b705641b581c35c34de8b1048c86fd0b1;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49 diff --git a/test/video_mxf_content_test.cc b/test/video_mxf_content_test.cc index 953e9b7b7..4759cb69c 100644 --- a/test/video_mxf_content_test.cc +++ b/test/video_mxf_content_test.cc @@ -26,8 +26,10 @@ #include "test.h" #include #include +#include using boost::shared_ptr; +using boost::make_shared; using boost::dynamic_pointer_cast; static boost::filesystem::path ref_mxf = "test/data/scaling_test_185_185/j2c_a41afbff-e1ad-41c4-9a84-de315b95dd0f.mxf"; @@ -53,9 +55,9 @@ BOOST_AUTO_TEST_CASE (video_mxf_content_test) film->make_dcp (); wait_for_jobs (); - shared_ptr ref (new dcp::MonoPictureAsset (ref_mxf)); + shared_ptr ref = make_shared (ref_mxf); boost::filesystem::directory_iterator i ("build/test/video_mxf_content_test/video"); - shared_ptr comp (new dcp::MonoPictureAsset (*i)); + shared_ptr comp = make_shared (*i); dcp::EqualityOptions op; BOOST_CHECK (ref->equals (comp, op, note)); }