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/make_black_test.cc | |
| parent | 4e83acad0c2a5c528709a175a80261b8147d3b49 (diff) | |
Use make_shared<>.
Diffstat (limited to 'test/make_black_test.cc')
| -rw-r--r-- | test/make_black_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/make_black_test.cc b/test/make_black_test.cc index 405cc835f..88bf4bb7a 100644 --- a/test/make_black_test.cc +++ b/test/make_black_test.cc @@ -25,14 +25,16 @@ * @see test/image_test.cc */ -#include <boost/test/unit_test.hpp> #include <dcp/util.h> extern "C" { #include <libavutil/pixfmt.h> } #include "lib/image.h" +#include <boost/make_shared.hpp> +#include <boost/test/unit_test.hpp> using std::list; +using boost::make_shared; BOOST_AUTO_TEST_CASE (make_black_test) { @@ -79,7 +81,7 @@ BOOST_AUTO_TEST_CASE (make_black_test) int N = 0; for (list<AVPixelFormat>::const_iterator i = pix_fmts.begin(); i != pix_fmts.end(); ++i) { - boost::shared_ptr<Image> foo (new Image (*i, in_size, true)); + boost::shared_ptr<Image> foo = make_shared<Image> (*i, in_size, true); foo->make_black (); boost::shared_ptr<Image> bar = foo->scale (out_size, dcp::YUV_TO_RGB_REC601, AV_PIX_FMT_RGB24, true, false); |
