X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fblack_fill_test.cc;h=77ee908482fa5156721005ece0829e5de33485c2;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hp=79b97ad77a557af765a4082839c21e4271136784;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49;p=dcpomatic.git diff --git a/test/black_fill_test.cc b/test/black_fill_test.cc index 79b97ad77..77ee90848 100644 --- a/test/black_fill_test.cc +++ b/test/black_fill_test.cc @@ -18,19 +18,21 @@ */ -#include #include "lib/image_content.h" #include "lib/dcp_content_type.h" #include "lib/film.h" #include "lib/ratio.h" #include "lib/video_content.h" #include "test.h" +#include +#include /** @file test/black_fill_test.cc * @brief Test insertion of black frames between separate bits of video content. */ using boost::shared_ptr; +using boost::make_shared; BOOST_AUTO_TEST_CASE (black_fill_test) { @@ -39,8 +41,8 @@ BOOST_AUTO_TEST_CASE (black_fill_test) film->set_name ("black_fill_test"); film->set_container (Ratio::from_id ("185")); film->set_sequence (false); - shared_ptr contentA (new ImageContent (film, "test/data/simple_testcard_640x480.png")); - shared_ptr contentB (new ImageContent (film, "test/data/simple_testcard_640x480.png")); + shared_ptr contentA = make_shared (film, "test/data/simple_testcard_640x480.png"); + shared_ptr contentB = make_shared (film, "test/data/simple_testcard_640x480.png"); film->examine_and_add_content (contentA); film->examine_and_add_content (contentB);