From 32360aedc97a0cc9acc1b1c10d2e8351dcacb549 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 4 Dec 2022 20:30:48 +0100 Subject: Fix some ambiguous shared_ptrs, seen on Arch Linux. --- test/decryption_test.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'test/decryption_test.cc') diff --git a/test/decryption_test.cc b/test/decryption_test.cc index 0f32a6f4..2ce34b51 100644 --- a/test/decryption_test.cc +++ b/test/decryption_test.cc @@ -64,7 +64,6 @@ using std::dynamic_pointer_cast; using std::make_pair; -using std::make_shared; using std::map; using std::pair; using std::shared_ptr; @@ -155,7 +154,7 @@ BOOST_AUTO_TEST_CASE (decryption_test2) auto context_id = dcp::make_uuid(); dcp::Key key; - auto picture_asset = make_shared(dcp::Fraction(24, 1), dcp::Standard::SMPTE); + auto picture_asset = std::make_shared(dcp::Fraction(24, 1), dcp::Standard::SMPTE); picture_asset->set_key (key); picture_asset->set_context_id (context_id); auto picture_writer = picture_asset->start_write(dir / "picture.mxf", false); @@ -165,7 +164,7 @@ BOOST_AUTO_TEST_CASE (decryption_test2) } picture_writer->finalize(); - auto sound_asset = make_shared(dcp::Fraction(24, 1), 48000, 2, dcp::LanguageTag("en-GB"), dcp::Standard::SMPTE); + auto sound_asset = std::make_shared(dcp::Fraction(24, 1), 48000, 2, dcp::LanguageTag("en-GB"), dcp::Standard::SMPTE); sound_asset->set_key (key); sound_asset->set_context_id (context_id); auto sound_writer = sound_asset->start_write(dir / "sound.mxf"); @@ -181,10 +180,10 @@ BOOST_AUTO_TEST_CASE (decryption_test2) sound_writer->write (audio.data(), 48000); sound_writer->finalize (); - auto subs_asset = make_shared(); + auto subs_asset = std::make_shared(); subs_asset->set_key (key); subs_asset->set_context_id (context_id); - subs_asset->add(make_shared( + subs_asset->add(std::make_shared( optional(), false, false, false, dcp::Colour(255, 255, 255), @@ -203,10 +202,10 @@ BOOST_AUTO_TEST_CASE (decryption_test2) )); subs_asset->write (dir / "subs.mxf"); - auto reel = make_shared(); - auto reel_picture_asset = make_shared(picture_asset, 0); - auto reel_sound_asset = make_shared(sound_asset, 0); - auto reel_subs_asset = make_shared(subs_asset, dcp::Fraction(24, 1), 120, 0); + auto reel = std::make_shared(); + auto reel_picture_asset = std::make_shared(picture_asset, 0); + auto reel_sound_asset = std::make_shared(sound_asset, 0); + auto reel_subs_asset = std::make_shared(subs_asset, dcp::Fraction(24, 1), 120, 0); reel->add(reel_picture_asset); reel->add(reel_sound_asset); reel->add(reel_subs_asset); -- cgit v1.2.3