@@ -139,7 +139,7 @@ void fill_double(mapnik::image_any & im, double val)
139139
140140std::shared_ptr<image_any> copy (mapnik::image_any const & im, mapnik::image_dtype type, double offset, double scaling)
141141{
142- return std::make_shared<image_any>(std::move ( mapnik::image_copy (im, type, offset, scaling) ));
142+ return std::make_shared<image_any>(mapnik::image_copy (im, type, offset, scaling));
143143}
144144
145145unsigned compare (mapnik::image_any const & im1, mapnik::image_any const & im2, double threshold, bool alpha)
@@ -235,7 +235,7 @@ std::shared_ptr<image_any> open_from_file(std::string const& filename)
235235 std::unique_ptr<image_reader> reader (get_image_reader (filename,*type));
236236 if (reader.get ())
237237 {
238- return std::make_shared<image_any>(std::move ( reader->read (0 ,0 ,reader->width (),reader->height () )));
238+ return std::make_shared<image_any>(reader->read (0 ,0 ,reader->width (),reader->height ()));
239239 }
240240 throw mapnik::image_reader_exception (" Failed to load: " + filename);
241241 }
@@ -247,7 +247,7 @@ std::shared_ptr<image_any> fromstring(std::string const& str)
247247 std::unique_ptr<image_reader> reader (get_image_reader (str.c_str (),str.size ()));
248248 if (reader.get ())
249249 {
250- return std::make_shared<image_any>(std::move ( reader->read (0 ,0 ,reader->width (), reader->height () )));
250+ return std::make_shared<image_any>(reader->read (0 ,0 ,reader->width (), reader->height ()));
251251 }
252252 throw mapnik::image_reader_exception (" Failed to load image from buffer" );
253253}
0 commit comments