summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_create.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-21 01:14:06 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-21 01:14:06 +0100
commit5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f (patch)
tree769dca1358e35017ce5a5b3ab2dfafe2b24d61ed /src/tools/dcpomatic_create.cc
parent4e83acad0c2a5c528709a175a80261b8147d3b49 (diff)
Use make_shared<>.
Diffstat (limited to 'src/tools/dcpomatic_create.cc')
-rw-r--r--src/tools/dcpomatic_create.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc
index fd950807c..3697b4e8b 100644
--- a/src/tools/dcpomatic_create.cc
+++ b/src/tools/dcpomatic_create.cc
@@ -31,6 +31,7 @@
#include "lib/video_content.h"
#include <libxml++/libxml++.h>
#include <boost/filesystem.hpp>
+#include <boost/make_shared.hpp>
#include <getopt.h>
#include <string>
#include <iostream>
@@ -43,6 +44,7 @@ using std::cerr;
using std::list;
using std::exception;
using boost::shared_ptr;
+using boost::make_shared;
using boost::dynamic_pointer_cast;
static void
@@ -206,7 +208,7 @@ main (int argc, char* argv[])
}
try {
- shared_ptr<Film> film (new Film (output, false));
+ shared_ptr<Film> film = make_shared<Film> (output, false);
film->set_name (name);
film->set_container (container_ratio);