diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-29 01:47:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-12-29 01:47:32 +0100 |
| commit | ce73eaf7875a9a3326afcd839ad85eb95879c160 (patch) | |
| tree | c4cff45a7bada9aebf48b6e51c5dffe086045e20 /test/reels_test.cc | |
| parent | 0f772d68ef7fb32002538ce9ca7c9764d0d7135b (diff) | |
Cleanup: test tidying.
Diffstat (limited to 'test/reels_test.cc')
| -rw-r--r-- | test/reels_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/reels_test.cc b/test/reels_test.cc index 092c206f0..7fbf77f74 100644 --- a/test/reels_test.cc +++ b/test/reels_test.cc @@ -110,21 +110,21 @@ BOOST_AUTO_TEST_CASE (reels_test2) film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TST")); { - shared_ptr<ImageContent> c (new ImageContent("test/data/flat_red.png")); + auto c = make_shared<ImageContent>("test/data/flat_red.png"); film->examine_and_add_content (c); BOOST_REQUIRE (!wait_for_jobs()); c->video->set_length (24); } { - shared_ptr<ImageContent> c (new ImageContent("test/data/flat_green.png")); + auto c = make_shared<ImageContent>("test/data/flat_green.png"); film->examine_and_add_content (c); BOOST_REQUIRE (!wait_for_jobs()); c->video->set_length (24); } { - shared_ptr<ImageContent> c (new ImageContent("test/data/flat_blue.png")); + auto c = make_shared<ImageContent>("test/data/flat_blue.png"); film->examine_and_add_content (c); BOOST_REQUIRE (!wait_for_jobs()); c->video->set_length (24); @@ -200,7 +200,7 @@ BOOST_AUTO_TEST_CASE (reels_test4) /* 4 piece of 1s-long content */ shared_ptr<ImageContent> content[4]; for (int i = 0; i < 4; ++i) { - content[i].reset (new ImageContent("test/data/flat_green.png")); + content[i] = make_shared<ImageContent>("test/data/flat_green.png"); film->examine_and_add_content (content[i]); BOOST_REQUIRE (!wait_for_jobs()); content[i]->video->set_length (24); |
