diff --git a/include/mapnik/image_data.hpp b/include/mapnik/image_data.hpp index 6eddb4fa4..140b77a92 100644 --- a/include/mapnik/image_data.hpp +++ b/include/mapnik/image_data.hpp @@ -109,8 +109,8 @@ public: {} image_data(image_data && rhs) noexcept - : width_(rhs.width_), - height_(rhs.height_), + : width_(std::move(rhs.width_)), + height_(std::move(rhs.height_)), buffer_(std::move(rhs.buffer_)), pData_(reinterpret_cast(buffer_.data())) { diff --git a/include/mapnik/renderer_common/process_raster_symbolizer.hpp b/include/mapnik/renderer_common/process_raster_symbolizer.hpp index 9c4577f83..588c5fa30 100644 --- a/include/mapnik/renderer_common/process_raster_symbolizer.hpp +++ b/include/mapnik/renderer_common/process_raster_symbolizer.hpp @@ -154,7 +154,7 @@ void render_raster_symbolizer(raster_symbolizer const& sym, double offset_x = ext.minx() - start_x; double offset_y = ext.miny() - start_y; image_data_rgba8 data(raster_width, raster_height); - raster target(target_ext, data, source->get_filter_factor()); + raster target(target_ext, std::move(data), source->get_filter_factor()); unsigned mesh_size = static_cast(get(sym,keys::mesh_size,feature, common.vars_, 16)); reproject_and_scale_raster(target, *source,