X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Ftest.cc;h=d3180434d082307896f4c0e201d3eaa9336fdd64;hp=c7a9e95bfd6f8d6a78eda143c4020f4d4bf458ce;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05 diff --git a/test/test.cc b/test/test.cc index c7a9e95bf..d3180434d 100644 --- a/test/test.cc +++ b/test/test.cc @@ -40,6 +40,7 @@ #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE dcpomatic_test #include +#include #include #include #include @@ -53,6 +54,7 @@ using std::list; using std::abs; using boost::shared_ptr; using boost::scoped_array; +using boost::make_shared; boost::filesystem::path private_data = boost::filesystem::path ("..") / boost::filesystem::path ("dcpomatic-test-private"); @@ -112,7 +114,7 @@ new_test_film (string name) boost::filesystem::remove_all (p); } - shared_ptr film = shared_ptr (new Film (p.string())); + shared_ptr film = boost::make_shared (p.string()); film->write_metadata (); return film; }