summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-03-08 16:27:52 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-03-16 09:26:41 +0000
commit7ad0349c3be792c5ef55f6d1bbf9cb5870d102a0 (patch)
tree72d46676ee66fe45a7233320a30ae1e229889311
parentf93c464f7b0f2b3223a4d17cb52f6b5f4a6b0002 (diff)
downloadqtlocation-7ad0349c3be792c5ef55f6d1bbf9cb5870d102a0.tar.gz
Fix warning: usage of deprecated QString()
Change-Id: I584483bfce276132f167f2344ea731bb9d6da894 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/maps/qgeorouteparserosrmv5.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv5.cpp b/src/location/maps/qgeorouteparserosrmv5.cpp
index 63610485..d2699689 100644
--- a/src/location/maps/qgeorouteparserosrmv5.cpp
+++ b/src/location/maps/qgeorouteparserosrmv5.cpp
@@ -836,7 +836,12 @@ static QGeoRouteSegment parseStep(const QJsonObject &step, bool useServerText) {
geoManeuver.setWaypoint(coord);
QVariantMap extraAttributes;
- static const QStringList extras { "bearing_before", "bearing_after", "instruction", "type", "modifier" };
+ static const QStringList extras {
+ QLatin1String("bearing_before"),
+ QLatin1String("bearing_after"),
+ QLatin1String("instruction"),
+ QLatin1String("type"),
+ QLatin1String("modifier") };
for (const QString &e: extras) {
if (maneuver.find(e) != maneuver.end())
extraAttributes.insert(e, maneuver.value(e).toVariant());