From 73e955d9f675c9587ba2eaefca60a7a825aa1037 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Fri, 5 Nov 2021 13:20:15 +0100 Subject: Fix warnings that break Windows build Windows machines in the CI have more strict rules for dealing with warnings. Most of them are treated as errors. This patch fixes such warnings. Task-number: QTBUG-97769 Change-Id: I9432d266a0b019512c38009ff2395b51071c59bf Reviewed-by: Alex Blasche --- src/plugins/geoservices/mapbox/qmapboxcommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/geoservices/mapbox') 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; -- cgit v1.2.3