summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-12-05 23:24:41 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-12-07 00:55:06 +0100
commit075b7a868f5334028d06c7fb5b5aa09b64365358 (patch)
treefab0c3152c28614848d35f423c2cfbd0f6db1ac0 /src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
parent1e30c174402b35d51e5962678e75595ad8f716dc (diff)
downloadqtlocation-075b7a868f5334028d06c7fb5b5aa09b64365358.tar.gz
Mark the module as free of qAsConst()
Change-Id: Ie67ec9b4f1f808b3b70ca7beb98f90c9cd1f2a9f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp')
-rw-r--r--src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp b/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
index 97a4cf39..a1ee42ef 100644
--- a/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
+++ b/src/plugins/geoservices/mapboxgl/qmapboxglstylechange.cpp
@@ -99,12 +99,12 @@ QMapbox::Feature featureFromMapCircle(QDeclarativeCircleMapItem *mapItem)
QGeoCoordinate leftBound;
QDeclarativeCircleMapItemPrivate::calculatePeripheralPoints(path, mapItem->center(), mapItem->radius(), circleSamples, leftBound);
QList<QDoubleVector2D> pathProjected;
- for (const QGeoCoordinate &c : qAsConst(path))
+ for (const QGeoCoordinate &c : std::as_const(path))
pathProjected << p.geoToMapProjection(c);
if (QDeclarativeCircleMapItemPrivateCPU::crossEarthPole(mapItem->center(), mapItem->radius()))
QDeclarativeCircleMapItemPrivateCPU::preserveCircleGeometry(pathProjected, mapItem->center(), mapItem->radius(), p);
path.clear();
- for (const QDoubleVector2D &c : qAsConst(pathProjected))
+ for (const QDoubleVector2D &c : std::as_const(pathProjected))
path << p.mapProjectionToGeo(c);