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/video_content_scale_test.cc | |
| parent | 4e83acad0c2a5c528709a175a80261b8147d3b49 (diff) | |
Use make_shared<>.
Diffstat (limited to 'test/video_content_scale_test.cc')
| -rw-r--r-- | test/video_content_scale_test.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/video_content_scale_test.cc b/test/video_content_scale_test.cc index 6f5d85a11..f1edce041 100644 --- a/test/video_content_scale_test.cc +++ b/test/video_content_scale_test.cc @@ -18,15 +18,17 @@ */ -#include <boost/test/unit_test.hpp> #include "lib/ffmpeg_content.h" #include "lib/ratio.h" #include "lib/video_content.h" +#include <boost/test/unit_test.hpp> +#include <boost/make_shared.hpp> using std::list; using std::string; using std::cerr; using boost::shared_ptr; +using boost::make_shared; using boost::optional; static @@ -86,11 +88,11 @@ test (dcp::Size content_size, dcp::Size display_size, dcp::Size film_size, Crop "<SubtitleYScale>0</SubtitleYScale>" "</Content>"; - shared_ptr<cxml::Document> doc (new cxml::Document ()); + shared_ptr<cxml::Document> doc = make_shared<cxml::Document> (); doc->read_string(s.str ()); list<string> notes; - shared_ptr<FFmpegContent> vc (new FFmpegContent (film, doc, 10, notes)); + shared_ptr<FFmpegContent> vc = boost::make_shared<FFmpegContent> (film, doc, 10, notes); optional<VideoContentScale> sc; if (ratio) { |
