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/lib/image_content.cc | |
| parent | 4e83acad0c2a5c528709a175a80261b8147d3b49 (diff) | |
Use make_shared<>.
Diffstat (limited to 'src/lib/image_content.cc')
| -rw-r--r-- | src/lib/image_content.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/image_content.cc b/src/lib/image_content.cc index d4e736771..ca8bd380f 100644 --- a/src/lib/image_content.cc +++ b/src/lib/image_content.cc @@ -31,6 +31,7 @@ #include <libcxml/cxml.h> #include <libxml++/libxml++.h> #include <boost/foreach.hpp> +#include <boost/make_shared.hpp> #include <iostream> #include "i18n.h" @@ -39,6 +40,7 @@ using std::string; using std::cout; using std::list; using boost::shared_ptr; +using boost::make_shared; ImageContent::ImageContent (shared_ptr<const Film> film, boost::filesystem::path p) : Content (film) @@ -119,7 +121,7 @@ ImageContent::examine (shared_ptr<Job> job) shared_ptr<const Film> film = _film.lock (); DCPOMATIC_ASSERT (film); - shared_ptr<ImageExaminer> examiner (new ImageExaminer (film, shared_from_this(), job)); + shared_ptr<ImageExaminer> examiner = make_shared<ImageExaminer> (film, shared_from_this(), job); video->take_from_examiner (examiner); set_default_colour_conversion (); } |
