diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/location/maps/qgeorouteparserosrmv5.cpp | 7 |
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()); |