diff options
Diffstat (limited to 'src/location/maps/qgeoprojection.cpp')
-rw-r--r-- | src/location/maps/qgeoprojection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/maps/qgeoprojection.cpp b/src/location/maps/qgeoprojection.cpp index d39c36d6..b23d15a0 100644 --- a/src/location/maps/qgeoprojection.cpp +++ b/src/location/maps/qgeoprojection.cpp @@ -834,12 +834,12 @@ void QGeoProjectionWebMercator::updateVisibleRegion() // Compute m_visibleRegionExpanded as a clipped expanded version of m_visibleRegion QDoubleVector2D centroid; - for (const QDoubleVector2D &v: qAsConst(m_visibleRegion)) + for (const QDoubleVector2D &v: std::as_const(m_visibleRegion)) centroid += v; centroid /= m_visibleRegion.size(); m_visibleRegionExpanded.clear(); - for (const QDoubleVector2D &v: qAsConst(m_visibleRegion)) { + for (const QDoubleVector2D &v: std::as_const(m_visibleRegion)) { const QDoubleVector2D vc = v - centroid; m_visibleRegionExpanded.push_back(centroid + vc * 1.2); // fixing expansion factor to 1.2 } |