diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-04 20:30:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-12-04 21:52:29 +0100 |
| commit | 32360aedc97a0cc9acc1b1c10d2e8351dcacb549 (patch) | |
| tree | c1906eb45f7e81b4c79c07b9821466a370e186f4 /test/decryption_test.cc | |
| parent | d6dfe05f4b39d0b5ff75185f9b00b5133b19c88e (diff) | |
Fix some ambiguous shared_ptrs, seen on Arch Linux.
Diffstat (limited to 'test/decryption_test.cc')
| -rw-r--r-- | test/decryption_test.cc | 17 |
1 files changed, 8 insertions, 9 deletions
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::MonoPictureAsset>(dcp::Fraction(24, 1), dcp::Standard::SMPTE); + auto picture_asset = std::make_shared<dcp::MonoPictureAsset>(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::SoundAsset>(dcp::Fraction(24, 1), 48000, 2, dcp::LanguageTag("en-GB"), dcp::Standard::SMPTE); + auto sound_asset = std::make_shared<dcp::SoundAsset>(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<dcp::SMPTESubtitleAsset>(); + auto subs_asset = std::make_shared<dcp::SMPTESubtitleAsset>(); subs_asset->set_key (key); subs_asset->set_context_id (context_id); - subs_asset->add(make_shared<dcp::SubtitleString>( + subs_asset->add(std::make_shared<dcp::SubtitleString>( optional<string>(), 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<dcp::Reel>(); - auto reel_picture_asset = make_shared<dcp::ReelMonoPictureAsset>(picture_asset, 0); - auto reel_sound_asset = make_shared<dcp::ReelSoundAsset>(sound_asset, 0); - auto reel_subs_asset = make_shared<dcp::ReelSMPTESubtitleAsset>(subs_asset, dcp::Fraction(24, 1), 120, 0); + auto reel = std::make_shared<dcp::Reel>(); + auto reel_picture_asset = std::make_shared<dcp::ReelMonoPictureAsset>(picture_asset, 0); + auto reel_sound_asset = std::make_shared<dcp::ReelSoundAsset>(sound_asset, 0); + auto reel_subs_asset = std::make_shared<dcp::ReelSMPTESubtitleAsset>(subs_asset, dcp::Fraction(24, 1), 120, 0); reel->add(reel_picture_asset); reel->add(reel_sound_asset); reel->add(reel_subs_asset); |
