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_batch.cc | |
| parent | 4e83acad0c2a5c528709a175a80261b8147d3b49 (diff) | |
Use make_shared<>.
Diffstat (limited to 'src/tools/dcpomatic_batch.cc')
| -rw-r--r-- | src/tools/dcpomatic_batch.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_batch.cc b/src/tools/dcpomatic_batch.cc index a112e457a..3570dda08 100644 --- a/src/tools/dcpomatic_batch.cc +++ b/src/tools/dcpomatic_batch.cc @@ -36,12 +36,14 @@ #include <wx/cmdline.h> #include <wx/preferences.h> #include <wx/wx.h> +#include <boost/make_shared.hpp> #include <iostream> using std::exception; using std::string; using std::cout; using boost::shared_ptr; +using boost::make_shared; using boost::thread; using boost::scoped_array; @@ -128,7 +130,7 @@ public: void start_job (boost::filesystem::path path) { try { - shared_ptr<Film> film (new Film (path)); + shared_ptr<Film> film = make_shared<Film> (path); film->read_metadata (); film->make_dcp (); } catch (std::exception& e) { |
