diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2021-11-05 13:20:15 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2021-11-09 10:28:22 +0100 |
commit | 73e955d9f675c9587ba2eaefca60a7a825aa1037 (patch) | |
tree | a7113fc5305daa6f56f795a15a11cf92f8268d4a /src/plugins/geoservices/mapbox | |
parent | 9121d0e4b45fb3a1401554bc48c77f17ce40a7f9 (diff) |
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 <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/mapbox')
-rw-r--r-- | src/plugins/geoservices/mapbox/qmapboxcommon.cpp | 4 |
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; |