X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=11b2b70bebc65e7503abc2dca66bf78bac54342a;hp=c216d8d2627344264d940e4ab7a8d1a3db26c6d5;hb=067bb62415847791709f4c3cad8bb252a63f45f8;hpb=eb8269e3b5eebdd77e6a82d42bcfdfbc3f7613a9 diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index c216d8d..11b2b70 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -44,6 +44,7 @@ using std::list; using std::map; using std::pair; using std::shared_ptr; +using std::make_shared; using std::vector; using namespace pv::data::decode; @@ -74,8 +75,7 @@ DecoderStack::DecoderStack(pv::Session &session, connect(&session_, SIGNAL(frame_ended()), this, SLOT(on_frame_ended())); - stack_.push_back(shared_ptr( - new decode::Decoder(dec))); + stack_.push_back(make_shared(dec)); } DecoderStack::~DecoderStack()