From 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 21 Jun 2016 01:14:06 +0100 Subject: Use make_shared<>. --- test/audio_processor_test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/audio_processor_test.cc') diff --git a/test/audio_processor_test.cc b/test/audio_processor_test.cc index 8357cff78..97d2cd759 100644 --- a/test/audio_processor_test.cc +++ b/test/audio_processor_test.cc @@ -26,15 +26,17 @@ #include "lib/film.h" #include "test.h" #include +#include using boost::shared_ptr; +using boost::make_shared; /** Test the mid-side decoder for analysis and DCP-making */ BOOST_AUTO_TEST_CASE (audio_processor_test) { shared_ptr film = new_test_film ("audio_processor_test"); film->set_name ("audio_processor_test"); - shared_ptr c (new FFmpegContent (film, "test/data/white.wav")); + shared_ptr c = make_shared (film, "test/data/white.wav"); film->examine_and_add_content (c); wait_for_jobs (); @@ -43,7 +45,7 @@ BOOST_AUTO_TEST_CASE (audio_processor_test) film->set_audio_processor (AudioProcessor::from_id ("mid-side-decoder")); /* Analyse the audio and check it doesn't crash */ - shared_ptr job (new AnalyseAudioJob (film, film->playlist ())); + shared_ptr job = make_shared (film, film->playlist ()); JobManager::instance()->add (job); wait_for_jobs (); -- cgit v1.2.3