diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-21 01:14:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-21 01:14:06 +0100 |
| commit | 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f (patch) | |
| tree | 769dca1358e35017ce5a5b3ab2dfafe2b24d61ed /src/tools/dcpomatic_kdm.cc | |
| parent | 4e83acad0c2a5c528709a175a80261b8147d3b49 (diff) | |
Use make_shared<>.
Diffstat (limited to 'src/tools/dcpomatic_kdm.cc')
| -rw-r--r-- | src/tools/dcpomatic_kdm.cc | 16 |
1 files changed, 9 insertions, 7 deletions
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 <boost/bind.hpp> #include <boost/foreach.hpp> +#include <boost/make_shared.hpp> #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> job (new SendKDMEmailJob ( - film_name, - decrypted.content_title_text(), - _timing->from(), _timing->until(), - CinemaKDMs::collect (screen_kdms), - shared_ptr<Log> () - )); + shared_ptr<Job> job = boost::make_shared<SendKDMEmailJob> ( + film_name, + decrypted.content_title_text(), + _timing->from(), _timing->until(), + CinemaKDMs::collect (screen_kdms), + shared_ptr<Log> () + ); JobManager::instance()->add (job); if (_job_view) { |
