diff --git a/test/unit/imaging/image_io_test.cpp b/test/unit/imaging/image_io_test.cpp index 881179865..8a5150211 100644 --- a/test/unit/imaging/image_io_test.cpp +++ b/test/unit/imaging/image_io_test.cpp @@ -23,8 +23,8 @@ SECTION("readers") { { mapnik::image_rgba8 im_og; auto im_size = mapnik::image_rgba8::pixel_size * im_og.width() * im_og.height(); - mapnik::detail::buffer buf(im_og.bytes(),im_size); - mapnik::image_rgba8 im2(im_og.width(),im_og.height(),std::move(buf)); + mapnik::detail::buffer buf(im_og.bytes(), im_size); + mapnik::image_rgba8 im2(im_og.width(), im_og.height(), buf.data()); CHECK( im2.bytes() == im_og.bytes() ); #if defined(HAVE_JPEG) should_throw = "./test/data/images/blank.jpg";