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/film_metadata_test.cc | |
| parent | 4e83acad0c2a5c528709a175a80261b8147d3b49 (diff) | |
Use make_shared<>.
Diffstat (limited to 'test/film_metadata_test.cc')
| -rw-r--r-- | test/film_metadata_test.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/film_metadata_test.cc b/test/film_metadata_test.cc index 970c6526d..d61f5f0d1 100644 --- a/test/film_metadata_test.cc +++ b/test/film_metadata_test.cc @@ -22,17 +22,19 @@ * @brief Test some basic reading/writing of film metadata. */ -#include <boost/test/unit_test.hpp> -#include <boost/filesystem.hpp> -#include <boost/date_time.hpp> #include "lib/film.h" #include "lib/dcp_content_type.h" #include "lib/ratio.h" #include "test.h" +#include <boost/test/unit_test.hpp> +#include <boost/filesystem.hpp> +#include <boost/date_time.hpp> +#include <boost/make_shared.hpp> using std::string; using std::list; using boost::shared_ptr; +using boost::make_shared; BOOST_AUTO_TEST_CASE (film_metadata_test) { @@ -53,7 +55,7 @@ BOOST_AUTO_TEST_CASE (film_metadata_test) ignore.push_back ("Key"); check_xml ("test/data/metadata.xml.ref", dir.string() + "/metadata.xml", ignore); - shared_ptr<Film> g (new Film (dir)); + shared_ptr<Film> g = make_shared<Film> (dir); g->read_metadata (); BOOST_CHECK_EQUAL (g->name(), "fred"); |
