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 /test/test.cc | |
| parent | 4e83acad0c2a5c528709a175a80261b8147d3b49 (diff) | |
Use make_shared<>.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc index c7a9e95bf..d3180434d 100644 --- a/test/test.cc +++ b/test/test.cc @@ -40,6 +40,7 @@ #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE dcpomatic_test #include <boost/test/unit_test.hpp> +#include <boost/make_shared.hpp> #include <list> #include <vector> #include <iostream> @@ -53,6 +54,7 @@ using std::list; using std::abs; using boost::shared_ptr; using boost::scoped_array; +using boost::make_shared; boost::filesystem::path private_data = boost::filesystem::path ("..") / boost::filesystem::path ("dcpomatic-test-private"); @@ -112,7 +114,7 @@ new_test_film (string name) boost::filesystem::remove_all (p); } - shared_ptr<Film> film = shared_ptr<Film> (new Film (p.string())); + shared_ptr<Film> film = boost::make_shared<Film> (p.string()); film->write_metadata (); return film; } |
