From 7ad0349c3be792c5ef55f6d1bbf9cb5870d102a0 Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Thu, 8 Mar 2018 16:27:52 +0100 Subject: Fix warning: usage of deprecated QString() Change-Id: I584483bfce276132f167f2344ea731bb9d6da894 Reviewed-by: Alex Blasche --- src/location/maps/qgeorouteparserosrmv5.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()); -- cgit v1.2.1