summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/esri/georoutejsonparser_esri.cpp
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2021-11-05 13:20:15 +0100
committerIvan Solovev <ivan.solovev@qt.io>2021-11-09 10:28:22 +0100
commit73e955d9f675c9587ba2eaefca60a7a825aa1037 (patch)
treea7113fc5305daa6f56f795a15a11cf92f8268d4a /src/plugins/geoservices/esri/georoutejsonparser_esri.cpp
parent9121d0e4b45fb3a1401554bc48c77f17ce40a7f9 (diff)
downloadqtlocation-73e955d9f675c9587ba2eaefca60a7a825aa1037.tar.gz
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/esri/georoutejsonparser_esri.cpp')
-rw-r--r--src/plugins/geoservices/esri/georoutejsonparser_esri.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/geoservices/esri/georoutejsonparser_esri.cpp b/src/plugins/geoservices/esri/georoutejsonparser_esri.cpp
index 17492d94..3f6e3114 100644
--- a/src/plugins/geoservices/esri/georoutejsonparser_esri.cpp
+++ b/src/plugins/geoservices/esri/georoutejsonparser_esri.cpp
@@ -125,7 +125,7 @@ QString GeoRouteJsonParserEsri::errorString() const
void GeoRouteJsonParserEsri::parseDirections()
{
QJsonArray directions = m_json.value(kDirectionsKey).toArray();
- foreach (const QJsonValue &direction, directions)
+ for (const QJsonValue &direction : directions)
parseDirection(direction.toObject());
}
@@ -215,7 +215,7 @@ void GeoRouteJsonParserEsri::parseRoutes()
{
QJsonObject routes = m_json.value(kRoutesKey).toObject();
QJsonArray features = routes.value(kRoutesFeaturesKey).toArray();
- foreach (const QJsonValue &feature, features)
+ for (const QJsonValue &feature : features)
parseRoute(feature.toObject());
}
@@ -230,7 +230,7 @@ void GeoRouteJsonParserEsri::parseRoute(const QJsonObject &route)
if (!paths.isEmpty())
{
QList<QGeoCoordinate> geoCoordinates;
- foreach (const QJsonValue &value, paths.first().toArray()) // only first polyline?
+ for (const QJsonValue &value : paths.first().toArray()) // only first polyline?
{
QJsonArray geoCoordinate = value.toArray();
if (geoCoordinate.size() == 2) // ignore 3rd coordinate