[Qt] Cleanup annotation usage

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-16 17:48:15 +03:00
parent 7e1a9b7274
commit d323f393ec

View File

@@ -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() };