X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_kdm.cc;h=eb44b4997ff06982f23a0373f970564ca0879738;hp=c686a974de4d0746bc539b120cec56b7ad32677a;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49 diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index c686a974d..eb44b4997 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -51,6 +51,7 @@ #endif #include #include +#include #ifdef check #undef check @@ -61,6 +62,7 @@ using std::list; using std::string; using std::vector; using boost::shared_ptr; +using boost::make_shared; using boost::bind; enum { @@ -301,13 +303,13 @@ private: if (film_name.empty ()) { film_name = decrypted.content_title_text (); } - shared_ptr job (new SendKDMEmailJob ( - film_name, - decrypted.content_title_text(), - _timing->from(), _timing->until(), - CinemaKDMs::collect (screen_kdms), - shared_ptr () - )); + shared_ptr job = boost::make_shared ( + film_name, + decrypted.content_title_text(), + _timing->from(), _timing->until(), + CinemaKDMs::collect (screen_kdms), + shared_ptr () + ); JobManager::instance()->add (job); if (_job_view) {