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<>. --- src/lib/audio_decoder.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/audio_decoder.cc') diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 8c395cb89..fa9fe9711 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -23,6 +23,7 @@ #include "audio_decoder_stream.h" #include "audio_content.h" #include +#include #include #include "i18n.h" @@ -30,13 +31,14 @@ using std::cout; using std::map; using boost::shared_ptr; +using boost::make_shared; AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr content, bool fast, shared_ptr log) : _ignore (false) , _fast (fast) { BOOST_FOREACH (AudioStreamPtr i, content->streams ()) { - _streams[i] = shared_ptr (new AudioDecoderStream (content, i, parent, fast, log)); + _streams[i] = make_shared (content, i, parent, fast, log); } } -- cgit v1.2.3