Use make_shared<>.
[dcpomatic.git] / src / lib / audio_decoder.cc
index 8c395cb89a0074aa171c3eb06b39c6bc4c00d508..fa9fe9711f2cf91692b1d3d140b7a799900240ed 100644 (file)
@@ -23,6 +23,7 @@
 #include "audio_decoder_stream.h"
 #include "audio_content.h"
 #include <boost/foreach.hpp>
+#include <boost/make_shared.hpp>
 #include <iostream>
 
 #include "i18n.h"
 using std::cout;
 using std::map;
 using boost::shared_ptr;
+using boost::make_shared;
 
 AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<const AudioContent> content, bool fast, shared_ptr<Log> log)
        : _ignore (false)
        , _fast (fast)
 {
        BOOST_FOREACH (AudioStreamPtr i, content->streams ()) {
-               _streams[i] = shared_ptr<AudioDecoderStream> (new AudioDecoderStream (content, i, parent, fast, log));
+               _streams[i] = make_shared<AudioDecoderStream> (content, i, parent, fast, log);
        }
 }