diff options
Diffstat (limited to 'src/mbgl/annotation/shape_annotation_impl.cpp')
-rw-r--r-- | src/mbgl/annotation/shape_annotation_impl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/annotation/shape_annotation_impl.cpp b/src/mbgl/annotation/shape_annotation_impl.cpp index 728766dce3..3617315d5e 100644 --- a/src/mbgl/annotation/shape_annotation_impl.cpp +++ b/src/mbgl/annotation/shape_annotation_impl.cpp @@ -23,9 +23,8 @@ void ShapeAnnotationImpl::updateTileData(const CanonicalTileID& tileID, Annotati if (!shapeTiler) { mapbox::feature::feature_collection<double> features; - features.emplace_back(ShapeAnnotationGeometry::visit(geometry(), [] (auto&& geom) { - return Feature { std::move(geom) }; - })); + features.emplace_back(ShapeAnnotationGeometry::visit( + geometry(), [](auto&& geom) { return Feature{std::forward<decltype(geom)>(geom)}; })); mapbox::geojsonvt::Options options; // The annotation source is currently hard coded to maxzoom 16, so we're topping out at z16 // here as well. |