Skip to content

Commit

Permalink
amend e6e85ce - remove unneeded use of std::move
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Apr 19, 2016
1 parent b8bd2ab commit 69d0d8e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/vector_tile_geometry_decoder.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void decode_point(mapnik::geometry::geometry<geom_value_type> & geom,
geom_value_type y1_ = get_point_value<geom_value_type>(y1, scale_y, tile_y);
if (cmd == GeometryPBF::end)
{
geom = std::move(mapnik::geometry::geometry_empty());
geom = mapnik::geometry::geometry_empty();
return;
}
else if (bbox.intersects(x1_, y1_))
Expand Down Expand Up @@ -131,7 +131,7 @@ void decode_point(mapnik::geometry::geometry<geom_value_type> & geom,
std::size_t num_points = mp.size();
if (num_points == 0)
{
geom = std::move(mapnik::geometry::geometry_empty());
geom = mapnik::geometry::geometry_empty();
}
else if (num_points == 1)
{
Expand Down Expand Up @@ -168,7 +168,7 @@ void decode_linestring(mapnik::geometry::geometry<geom_value_type> & geom,
cmd = paths.line_next(x0, y0, false);
if (cmd == GeometryPBF::end)
{
geom = std::move(mapnik::geometry::geometry_empty());
geom = mapnik::geometry::geometry_empty();
return;
}
else if (cmd != GeometryPBF::move_to)
Expand Down Expand Up @@ -262,7 +262,7 @@ void decode_linestring(mapnik::geometry::geometry<geom_value_type> & geom,
std::size_t num_lines = multi_line.size();
if (num_lines == 0)
{
geom = std::move(mapnik::geometry::geometry_empty());
geom = mapnik::geometry::geometry_empty();
}
else if (num_lines == 1)
{
Expand All @@ -273,7 +273,7 @@ void decode_linestring(mapnik::geometry::geometry<geom_value_type> & geom,
}
else
{
geom = std::move(mapnik::geometry::geometry_empty());
geom = mapnik::geometry::geometry_empty();
}
}
else if (num_lines > 1)
Expand Down Expand Up @@ -313,7 +313,7 @@ void decode_polygon(mapnik::geometry::geometry<geom_value_type> & geom,
cmd = paths.ring_next(x0, y0, false);
if (cmd == GeometryPBF::end)
{
geom = std::move(mapnik::geometry::geometry_empty());
geom = mapnik::geometry::geometry_empty();
return;
}
else if (cmd != GeometryPBF::move_to)
Expand Down Expand Up @@ -504,7 +504,7 @@ void decode_polygon(mapnik::geometry::geometry<geom_value_type> & geom,

if (rings.size() == 0)
{
geom = std::move(mapnik::geometry::geometry_empty());
geom = mapnik::geometry::geometry_empty();
return;
}
std::size_t i = 0;
Expand Down Expand Up @@ -805,11 +805,11 @@ MAPNIK_VECTOR_INLINE mapnik::geometry::geometry<value_type> decode_geometry(Geom
{
// This was changed to not throw as unknown according to v2 of spec can simply be ignored and doesn't require
// it failing the processing
geom = std::move(mapnik::geometry::geometry_empty());
geom = mapnik::geometry::geometry_empty();
break;
}
}
return std::move(geom);
return geom;
}

template <typename value_type>
Expand Down

0 comments on commit 69d0d8e

Please sign in to comment.