summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapbox/qmapboxcommon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/geoservices/mapbox/qmapboxcommon.cpp')
-rw-r--r--src/plugins/geoservices/mapbox/qmapboxcommon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/geoservices/mapbox/qmapboxcommon.cpp b/src/plugins/geoservices/mapbox/qmapboxcommon.cpp
index b88e8f5c..ce097ce1 100644
--- a/src/plugins/geoservices/mapbox/qmapboxcommon.cpp
+++ b/src/plugins/geoservices/mapbox/qmapboxcommon.cpp
@@ -67,7 +67,7 @@ QGeoLocation QMapboxCommon::parseGeoLocation(const QJsonObject &response)
// 'address'. The former provides the street name, and the latter provides
// the street number in that case.
if (response.value(QStringLiteral("place_type")).isArray()) {
- foreach (const QJsonValue &value, response.value(QStringLiteral("place_type")).toArray()) {
+ for (const QJsonValue &value : response.value(QStringLiteral("place_type")).toArray()) {
if (!value.isString())
continue;
if (value.toString() == QStringLiteral("address")) {
@@ -89,7 +89,7 @@ QGeoLocation QMapboxCommon::parseGeoLocation(const QJsonObject &response)
address.setStreet(streetAddress);
if (response.value(QStringLiteral("context")).isArray()) {
- foreach (const QJsonValue &value, response.value(QStringLiteral("context")).toArray()) {
+ for (const QJsonValue &value : response.value(QStringLiteral("context")).toArray()) {
if (!value.isObject())
continue;