summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/qt/src/qmapboxgl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp
index 144d545d3c..9b1c58b6c4 100644
--- a/platform/qt/src/qmapboxgl.cpp
+++ b/platform/qt/src/qmapboxgl.cpp
@@ -404,10 +404,10 @@ mbgl::Annotation fromQMapboxGLShapeAnnotation(const ShapeAnnotation &shapeAnnota
linearRing.reserve(coordinates.size());
for (const Coordinate &coordinate : coordinates) {
- linearRing.emplace_back(mbgl::Point<double>(coordinate.first, coordinate.second));
+ linearRing.emplace_back(mbgl::Point<double> { coordinate.first, coordinate.second });
}
- polygon.emplace_back(linearRing);
+ polygon.push_back(std::move(linearRing));
}
return mbgl::StyleSourcedAnnotation { polygon, styleLayer.toStdString() };