diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-30 23:37:44 +0300 |
commit | 5bb7ebd7de5a020cda7ab1a590d81c73acdf377e (patch) | |
tree | 0776e71f61c64c2d0f4db7391f5b8caeddd91c42 /src/mbgl/annotation | |
parent | b4e9c0bd119a154f45827d1a62ebaf8407758779 (diff) | |
download | qtlocation-mapboxgl-5bb7ebd7de5a020cda7ab1a590d81c73acdf377e.tar.gz |
[core] Fix bugprone-move-forwarding-reference errors
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/annotation')
-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. |