summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-21 23:08:53 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-21 23:08:53 +0100
commita8a0dfd1b21de6c0facf965ab119833ff6f790bf (patch)
tree88bd3a7dd6d4ae56a1efa9b7443c341550759869 /test/test.cc
parente669b562937786bf5b771c927cc03a4074b01be8 (diff)
Revert "Use make_shared<>."
Support for this seems to vary wildly across DoM's build targets. Stuff that builds on 16.04 won't build on 14.04, for example. Seems to not be worth the hassle now. This reverts commit 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f.
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test.cc b/test/test.cc
index d3180434d..c7a9e95bf 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -40,7 +40,6 @@
#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>
@@ -54,7 +53,6 @@ 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");
@@ -114,7 +112,7 @@ new_test_film (string name)
boost::filesystem::remove_all (p);
}
- shared_ptr<Film> film = boost::make_shared<Film> (p.string());
+ shared_ptr<Film> film = shared_ptr<Film> (new Film (p.string()));
film->write_metadata ();
return film;
}