Use make_shared<>.
[dcpomatic.git] / test / silence_padding_test.cc
index 9791b71722e3bd92b430d27b13916780074330fe..5ece7d9cd180ec45e22d1b16f2c2c9af5d4a00ae 100644 (file)
 #include <dcp/reel_sound_asset.h>
 #include <dcp/sound_asset_reader.h>
 #include <boost/test/unit_test.hpp>
+#include <boost/make_shared.hpp>
 
 using std::string;
 using boost::lexical_cast;
 using boost::shared_ptr;
+using boost::make_shared;
 
 static void
 test_silence_padding (int channels)
@@ -49,7 +51,7 @@ test_silence_padding (int channels)
        film->set_container (Ratio::from_id ("185"));
        film->set_name (film_name);
 
-       shared_ptr<FFmpegContent> content (new FFmpegContent (film, "test/data/staircase.wav"));
+       shared_ptr<FFmpegContent> content = make_shared<FFmpegContent> (film, "test/data/staircase.wav");
        film->examine_and_add_content (content);
        wait_for_jobs ();