summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeorouteparserosrmv5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/maps/qgeorouteparserosrmv5.cpp')
-rw-r--r--src/location/maps/qgeorouteparserosrmv5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv5.cpp b/src/location/maps/qgeorouteparserosrmv5.cpp
index 5d822491..a6585554 100644
--- a/src/location/maps/qgeorouteparserosrmv5.cpp
+++ b/src/location/maps/qgeorouteparserosrmv5.cpp
@@ -980,7 +980,7 @@ QGeoRouteReply::Error QGeoRouteParserOsrmV5Private::parseReply(QList<QGeoRoute>
QGeoRouteSegmentPrivate *segmentPrivate = QGeoRouteSegmentPrivate::get(segment);
segmentPrivate->setLegLastSegment(true);
QList<QGeoCoordinate> path;
- for (const QGeoRouteSegment &s: qAsConst(legSegments))
+ for (const QGeoRouteSegment &s: std::as_const(legSegments))
path.append(s.path());
routeLeg.setLegIndex(legIndex);
routeLeg.setOverallRoute(route); // QGeoRoute::d_ptr is explicitlySharedDataPointer. Modifiers below won't detach it.