use std::move

This commit is contained in:
artemp 2014-12-15 14:54:59 +01:00
parent 0d2eb9cb5f
commit 89a84150ee
2 changed files with 3 additions and 3 deletions

View file

@ -109,8 +109,8 @@ public:
{}
image_data(image_data<pixel_type> && 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<pixel_type*>(buffer_.data()))
{

View file

@ -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<unsigned>(get<value_integer>(sym,keys::mesh_size,feature, common.vars_, 16));
reproject_and_scale_raster(target,
*source,