summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-03 01:37:58 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-03 01:50:41 (GMT)
commit762a7bde707315094f74a94a369f88b48d13960e (patch)
tree2d393f336bfc84a098598ec64a5e9c2f0f248d52
parent1ccc01975e229d3956d1351865ba9113f5840411 (diff)
Use QStringLiteral with setName(QString)
-rw-r--r--src/lib/marble/PlanetFactory.cpp26
-rw-r--r--src/lib/marble/PositionTracking.cpp8
-rw-r--r--src/lib/marble/RoutingRunner.cpp4
-rw-r--r--src/lib/marble/TourWidget.cpp4
-rw-r--r--src/lib/marble/routing/RoutingManager.cpp10
-rw-r--r--src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.cpp4
-rw-r--r--src/plugins/render/satellites/TrackerPluginModel.cpp2
-rw-r--r--src/plugins/runner/cyclestreets/CycleStreetsRunner.cpp6
-rw-r--r--src/plugins/runner/gosmore-routing/GosmoreRoutingRunner.cpp8
-rw-r--r--src/plugins/runner/mapquest/MapQuestRunner.cpp8
-rw-r--r--src/plugins/runner/monav/MonavRunner.cpp6
-rw-r--r--src/plugins/runner/open-source-routing-machine/OSRMRunner.cpp8
-rw-r--r--src/plugins/runner/openrouteservice/OpenRouteServiceRunner.cpp8
-rw-r--r--src/plugins/runner/routino/RoutinoRunner.cpp4
-rw-r--r--src/plugins/runner/shp/ShpRunner.cpp2
-rw-r--r--src/plugins/runner/traveling-salesman/TravelingSalesmanRunner.cpp2
16 files changed, 55 insertions, 55 deletions
diff --git a/src/lib/marble/PlanetFactory.cpp b/src/lib/marble/PlanetFactory.cpp
index ba5594c..16d2af7 100644
--- a/src/lib/marble/PlanetFactory.cpp
+++ b/src/lib/marble/PlanetFactory.cpp
@@ -58,7 +58,7 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 13.5964*DEG2RAD );
planet.setTheta_1( 6.1385025*DEG2RAD );
planet.setRadius( 2440000.0 );
- planet.setName( "Mercury" );
+ planet.setName(QStringLiteral("Mercury"));
planet.setHasAtmosphere( false );
} else if (id == QLatin1String("venus")) {
planet.setM_0( 50.4161*DEG2RAD );
@@ -74,7 +74,7 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 215.2995*DEG2RAD );
planet.setTheta_1( -1.4813688*DEG2RAD );
planet.setRadius( 6051800.0 );
- planet.setName( "Venus" );
+ planet.setName(QStringLiteral("Venus"));
planet.setHasAtmosphere( true );
planet.setAtmosphereColor( Oxygen::sunYellow4 );
} else if (id == QLatin1String("earth")) {
@@ -91,7 +91,7 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 280.1600*DEG2RAD );
planet.setTheta_1( 360.9856235*DEG2RAD );
planet.setRadius( 6378137.0 );
- planet.setName( "Earth" );
+ planet.setName(QStringLiteral("Earth"));
planet.setHasAtmosphere( true );
planet.setAtmosphereColor( Qt::white );
} else if (id == QLatin1String("mars")) {
@@ -108,7 +108,7 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 313.4803*DEG2RAD );
planet.setTheta_1( 350.89198226*DEG2RAD );
planet.setRadius( 3397000.0 );
- planet.setName( "Mars" );
+ planet.setName(QStringLiteral("Mars"));
planet.setHasAtmosphere( true );
planet.setAtmosphereColor( Oxygen::hotOrange2 );
} else if (id == QLatin1String("jupiter")) {
@@ -125,7 +125,7 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 146.0727*DEG2RAD );
planet.setTheta_1( 870.5366420*DEG2RAD );
planet.setRadius( 71492000.0 );
- planet.setName( "Jupiter" );
+ planet.setName(QStringLiteral("Jupiter"));
planet.setHasAtmosphere( true );
planet.setAtmosphereColor( Oxygen::sunYellow2 );
} else if (id == QLatin1String("saturn")) {
@@ -142,7 +142,7 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 174.3479*DEG2RAD );
planet.setTheta_1( 810.7939024*DEG2RAD );
planet.setRadius( 60268000.0 );
- planet.setName( "Saturn" );
+ planet.setName(QStringLiteral("Saturn"));
planet.setHasAtmosphere( true );
planet.setAtmosphereColor( Oxygen::sunYellow2 );
} else if (id == QLatin1String("uranus")) {
@@ -159,7 +159,7 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 17.9705*DEG2RAD );
planet.setTheta_1( -501.1600928*DEG2RAD );
planet.setRadius( 25559000.0 );
- planet.setName( "Uranus" );
+ planet.setName(QStringLiteral("Uranus"));
planet.setHasAtmosphere( true );
planet.setAtmosphereColor( Oxygen::seaBlue4 );
} else if (id == QLatin1String("neptune")) {
@@ -176,7 +176,7 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 52.3996*DEG2RAD );
planet.setTheta_1( 536.3128492*DEG2RAD );
planet.setRadius( 24766000.0 );
- planet.setName( "Neptune" );
+ planet.setName(QStringLiteral("Neptune"));
planet.setHasAtmosphere( true );
planet.setAtmosphereColor( Oxygen::skyBlue2 );
} else if (id == QLatin1String("pluto")) {
@@ -194,30 +194,30 @@ Planet PlanetFactory::construct( const QString &id )
planet.setTheta_0( 56.3183*DEG2RAD );
planet.setTheta_1( -56.3623195*DEG2RAD );
planet.setRadius( 1151000.0 );
- planet.setName( "Pluto" );
+ planet.setName(QStringLiteral("Pluto"));
planet.setHasAtmosphere( false );
} else if (id == QLatin1String("sun")) {
mDebug() << "WARNING: Creating Planet instance" << id << "with invalid orbital elements";
planet.setRadius( 695000000.0 );
//FIXME: fill in with valid data
- planet.setName( "Sun" );
+ planet.setName(QStringLiteral("Sun"));
planet.setHasAtmosphere( true );
planet.setAtmosphereColor( Qt::white );
} else if (id == QLatin1String("moon")) {
mDebug() << "WARNING: Creating Planet instance" << id << "with invalid orbital elements";
planet.setRadius( 1738000.0 );
//FIXME: fill in with valid data
- planet.setName( "Moon" );
+ planet.setName(QStringLiteral("Moon"));
planet.setHasAtmosphere( false );
} else if (id == QLatin1String("sky")) {
mDebug() << "WARNING: Creating Planet instance" << id << "with invalid orbital elements";
planet.setRadius( 10000000.0 );
- planet.setName( "Sky" );
+ planet.setName(QStringLiteral("Sky"));
planet.setHasAtmosphere( false );
} else {
mDebug() << "WARNING: Creating Planet instance" << id << "with invalid orbital elements";
planet.setRadius( 10000000.0 );
- planet.setName( "Unknown" );
+ planet.setName(QStringLiteral("Unknown"));
planet.setHasAtmosphere( false );
}
diff --git a/src/lib/marble/PositionTracking.cpp b/src/lib/marble/PositionTracking.cpp
index 89475df..7fc10b5 100644
--- a/src/lib/marble/PositionTracking.cpp
+++ b/src/lib/marble/PositionTracking.cpp
@@ -139,10 +139,10 @@ PositionTracking::PositionTracking( GeoDataTreeModel *model )
d( new PositionTrackingPrivate( model, this ) )
{
d->m_document.setDocumentRole( TrackingDocument );
- d->m_document.setName("Position Tracking");
+ d->m_document.setName(QStringLiteral("Position Tracking"));
// First point is current position
- d->m_currentPositionPlacemark->setName("Current Position");
+ d->m_currentPositionPlacemark->setName(QStringLiteral("Current Position"));
d->m_currentPositionPlacemark->setVisible(false);
d->m_document.append( d->m_currentPositionPlacemark );
@@ -151,7 +151,7 @@ PositionTracking::PositionTracking( GeoDataTreeModel *model )
d->m_trackSegments->append(d->m_currentTrack);
d->m_currentTrackPlacemark->setGeometry(d->m_trackSegments);
- d->m_currentTrackPlacemark->setName("Current Track");
+ d->m_currentTrackPlacemark->setName(QStringLiteral("Current Track"));
GeoDataStyle::Ptr style(new GeoDataStyle);
GeoDataLineStyle lineStyle;
@@ -343,7 +343,7 @@ void PositionTracking::readSettings()
d->m_document.remove( 1 );
delete d->m_currentTrackPlacemark;
d->m_currentTrackPlacemark = track;
- d->m_currentTrackPlacemark->setName("Current Track");
+ d->m_currentTrackPlacemark->setName(QStringLiteral("Current Track"));
d->m_document.append( d->m_currentTrackPlacemark );
d->m_currentTrackPlacemark->setStyleUrl( d->m_currentTrackPlacemark->styleUrl() );
diff --git a/src/lib/marble/RoutingRunner.cpp b/src/lib/marble/RoutingRunner.cpp
index b6d0e3c..c7a1148 100644
--- a/src/lib/marble/RoutingRunner.cpp
+++ b/src/lib/marble/RoutingRunner.cpp
@@ -85,11 +85,11 @@ const GeoDataExtendedData RoutingRunner::routeData(qreal length, const QTime& du
{
GeoDataExtendedData result;
GeoDataData lengthData;
- lengthData.setName( "length" );
+ lengthData.setName(QStringLiteral("length"));
lengthData.setValue( length );
result.addValue( lengthData );
GeoDataData durationData;
- durationData.setName( "duration" );
+ durationData.setName(QStringLiteral("duration"));
durationData.setValue( duration.toString( Qt::ISODate ) );
result.addValue( durationData );
return result;
diff --git a/src/lib/marble/TourWidget.cpp b/src/lib/marble/TourWidget.cpp
index 7951806..ab6024c 100644
--- a/src/lib/marble/TourWidget.cpp
+++ b/src/lib/marble/TourWidget.cpp
@@ -776,10 +776,10 @@ void TourWidgetPrivate::createTour()
if ( overrideModifications() ) {
GeoDataDocument *document = new GeoDataDocument();
document->setDocumentRole( UserDocument );
- document->setName( "New Tour" );
+ document->setName(QStringLiteral("New Tour"));
document->setId(QStringLiteral("new_tour"));
GeoDataTour *tour = new GeoDataTour();
- tour->setName( "New Tour" );
+ tour->setName(QStringLiteral("New Tour"));
GeoDataPlaylist *playlist = new GeoDataPlaylist;
tour->setPlaylist( playlist );
document->append( static_cast<GeoDataFeature*>( tour ) );
diff --git a/src/lib/marble/routing/RoutingManager.cpp b/src/lib/marble/routing/RoutingManager.cpp
index 6415478..286e3d2 100644
--- a/src/lib/marble/routing/RoutingManager.cpp
+++ b/src/lib/marble/routing/RoutingManager.cpp
@@ -131,7 +131,7 @@ RoutingManagerPrivate::RoutingManagerPrivate( MarbleModel *model, RoutingManager
GeoDataFolder* RoutingManagerPrivate::routeRequest() const
{
GeoDataFolder* result = new GeoDataFolder;
- result->setName( "Route Request" );
+ result->setName(QStringLiteral("Route Request"));
for ( int i=0; i<m_routeRequest.size(); ++i ) {
GeoDataPlacemark* placemark = new GeoDataPlacemark( m_routeRequest[i] );
result->append( placemark );
@@ -172,7 +172,7 @@ void RoutingManagerPrivate::saveRoute(const QString &filename)
}
GeoDataDocument container;
- container.setName( "Route" );
+ container.setName(QStringLiteral("Route"));
GeoDataFolder* request = routeRequest();
if ( request ) {
container.append( request );
@@ -464,17 +464,17 @@ RoutingProfile RoutingManager::defaultProfile( RoutingProfile::TransportType tra
switch ( transportType ) {
case RoutingProfile::Motorcar:
tpl = RoutingProfilesModel::CarFastestTemplate;
- profile.setName( "Motorcar" );
+ profile.setName(QStringLiteral("Motorcar"));
profile.setTransportType( RoutingProfile::Motorcar );
break;
case RoutingProfile::Bicycle:
tpl = RoutingProfilesModel::BicycleTemplate;
- profile.setName( "Bicycle" );
+ profile.setName(QStringLiteral("Bicycle"));
profile.setTransportType( RoutingProfile::Bicycle );
break;
case RoutingProfile::Pedestrian:
tpl = RoutingProfilesModel::PedestrianTemplate;
- profile.setName( "Pedestrian" );
+ profile.setName(QStringLiteral("Pedestrian"));
profile.setTransportType( RoutingProfile::Pedestrian );
break;
}
diff --git a/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.cpp b/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.cpp
index f13a911..86a07a3 100644
--- a/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.cpp
+++ b/src/plugins/render/elevationprofilefloatitem/ElevationProfileFloatItem.cpp
@@ -72,9 +72,9 @@ ElevationProfileFloatItem::ElevationProfileFloatItem( const MarbleModel *marbleM
setPadding( 1 );
m_markerDocument.setDocumentRole( UnknownDocument );
- m_markerDocument.setName( "Elevation Profile" );
+ m_markerDocument.setName(QStringLiteral("Elevation Profile"));
- m_markerPlacemark->setName( "Elevation Marker" );
+ m_markerPlacemark->setName(QStringLiteral("Elevation Marker"));
m_markerPlacemark->setVisible( false );
m_markerDocument.append( m_markerPlacemark );
diff --git a/src/plugins/render/satellites/TrackerPluginModel.cpp b/src/plugins/render/satellites/TrackerPluginModel.cpp
index b74f3e5..3bd6333 100644
--- a/src/plugins/render/satellites/TrackerPluginModel.cpp
+++ b/src/plugins/render/satellites/TrackerPluginModel.cpp
@@ -85,7 +85,7 @@ TrackerPluginModel::TrackerPluginModel( GeoDataTreeModel *treeModel )
: d( new TrackerPluginModelPrivate( this, treeModel ) )
{
d->m_document->setDocumentRole( TrackingDocument );
- d->m_document->setName("Satellites");
+ d->m_document->setName(QStringLiteral("Satellites"));
if( d->m_enabled ) {
d->m_treeModel->addDocument( d->m_document );
}
diff --git a/src/plugins/runner/cyclestreets/CycleStreetsRunner.cpp b/src/plugins/runner/cyclestreets/CycleStreetsRunner.cpp
index 68ea120..076a302 100644
--- a/src/plugins/runner/cyclestreets/CycleStreetsRunner.cpp
+++ b/src/plugins/runner/cyclestreets/CycleStreetsRunner.cpp
@@ -147,9 +147,9 @@ GeoDataDocument *CycleStreetsRunner::parse( const QByteArray &content ) const
return 0;
}
GeoDataDocument *result = new GeoDataDocument();
- result->setName( "CycleStreets" );
+ result->setName(QStringLiteral("CycleStreets"));
GeoDataPlacemark *routePlacemark = new GeoDataPlacemark;
- routePlacemark->setName( "Route" );
+ routePlacemark->setName(QStringLiteral("Route"));
GeoDataLineString *routeWaypoints = new GeoDataLineString;
QDomNodeList features = xml.elementsByTagName(QStringLiteral("gml:featureMember"));
@@ -211,7 +211,7 @@ GeoDataDocument *CycleStreetsRunner::parse( const QByteArray &content ) const
GeoDataExtendedData extendedData;
GeoDataData turnType;
- turnType.setName( "turnType" );
+ turnType.setName(QStringLiteral("turnType"));
turnType.setValue( maneuverType( maneuver ) );
extendedData.addValue( turnType );
diff --git a/src/plugins/runner/gosmore-routing/GosmoreRoutingRunner.cpp b/src/plugins/runner/gosmore-routing/GosmoreRoutingRunner.cpp
index 4fd2818..d318311 100644
--- a/src/plugins/runner/gosmore-routing/GosmoreRoutingRunner.cpp
+++ b/src/plugins/runner/gosmore-routing/GosmoreRoutingRunner.cpp
@@ -136,11 +136,11 @@ QVector<GeoDataPlacemark*> GosmoreRunnerPrivate::parseGosmoreInstructions( const
GeoDataPlacemark* placemark = new GeoDataPlacemark( directions[i].instructionText() );
GeoDataExtendedData extendedData;
GeoDataData turnType;
- turnType.setName( "turnType" );
+ turnType.setName(QStringLiteral("turnType"));
turnType.setValue( qVariantFromValue<int>( int( directions[i].turnType() ) ) );
extendedData.addValue( turnType );
GeoDataData roadName;
- roadName.setName( "roadName" );
+ roadName.setName(QStringLiteral("roadName"));
roadName.setValue( directions[i].roadName() );
extendedData.addValue( roadName );
placemark->setExtendedData( extendedData );
@@ -167,11 +167,11 @@ GeoDataDocument* GosmoreRunnerPrivate::createDocument( GeoDataLineString* routeW
GeoDataDocument* result = new GeoDataDocument();
GeoDataPlacemark* routePlacemark = new GeoDataPlacemark;
- routePlacemark->setName( "Route" );
+ routePlacemark->setName(QStringLiteral("Route"));
routePlacemark->setGeometry( routeWaypoints );
result->append( routePlacemark );
- QString name = "%1 %2 (Gosmore)";
+ QString name = QStringLiteral("%1 %2 (Gosmore)");
QString unit = QLatin1String( "m" );
qreal length = routeWaypoints->length( EARTH_RADIUS );
if (length >= 1000) {
diff --git a/src/plugins/runner/mapquest/MapQuestRunner.cpp b/src/plugins/runner/mapquest/MapQuestRunner.cpp
index 401b5df..33567bb 100644
--- a/src/plugins/runner/mapquest/MapQuestRunner.cpp
+++ b/src/plugins/runner/mapquest/MapQuestRunner.cpp
@@ -209,9 +209,9 @@ GeoDataDocument* MapQuestRunner::parse( const QByteArray &content ) const
QDomElement root = xml.documentElement();
GeoDataDocument* result = new GeoDataDocument();
- result->setName( "MapQuest" );
+ result->setName(QStringLiteral("MapQuest"));
GeoDataPlacemark* routePlacemark = new GeoDataPlacemark;
- routePlacemark->setName( "Route" );
+ routePlacemark->setName(QStringLiteral("Route"));
GeoDataLineString* routeWaypoints = new GeoDataLineString;
QDomNodeList shapePoints = root.elementsByTagName(QStringLiteral("shapePoints"));
@@ -264,12 +264,12 @@ GeoDataDocument* MapQuestRunner::parse( const QByteArray &content ) const
GeoDataExtendedData extendedData;
GeoDataData turnType;
- turnType.setName( "turnType" );
+ turnType.setName(QStringLiteral("turnType"));
turnType.setValue( maneuverType( maneuver.at( 0 ).toElement().text().toInt() ) );
extendedData.addValue( turnType );
if ( streets.size() == 1 ) {
GeoDataData roadName;
- roadName.setName( "roadName" );
+ roadName.setName(QStringLiteral("roadName"));
roadName.setValue( streets.at( 0 ).toElement().text() );
extendedData.addValue( roadName );
}
diff --git a/src/plugins/runner/monav/MonavRunner.cpp b/src/plugins/runner/monav/MonavRunner.cpp
index c0cc5cf..0f60b3a 100644
--- a/src/plugins/runner/monav/MonavRunner.cpp
+++ b/src/plugins/runner/monav/MonavRunner.cpp
@@ -173,11 +173,11 @@ int MonavRunnerPrivate::retrieveRoute( const Marble::RouteRequest* route, QVecto
GeoDataPlacemark* placemark = new GeoDataPlacemark( directions[i].instructionText() );
GeoDataExtendedData extendedData;
GeoDataData turnType;
- turnType.setName( "turnType" );
+ turnType.setName(QStringLiteral("turnType"));
turnType.setValue( qVariantFromValue<int>( int( directions[i].turnType() ) ) );
extendedData.addValue( turnType );
GeoDataData roadName;
- roadName.setName( "roadName" );
+ roadName.setName(QStringLiteral("roadName"));
roadName.setValue( directions[i].roadName() );
extendedData.addValue( roadName );
placemark->setExtendedData( extendedData );
@@ -206,7 +206,7 @@ GeoDataDocument* MonavRunnerPrivate::createDocument( Marble::GeoDataLineString*
GeoDataDocument* result = new GeoDataDocument;
GeoDataPlacemark* routePlacemark = new GeoDataPlacemark;
- routePlacemark->setName( "Route" );
+ routePlacemark->setName(QStringLiteral("Route"));
routePlacemark->setGeometry( geometry );
routePlacemark->setExtendedData( data );
result->append( routePlacemark );
diff --git a/src/plugins/runner/open-source-routing-machine/OSRMRunner.cpp b/src/plugins/runner/open-source-routing-machine/OSRMRunner.cpp
index e303ac3..1d2bce9 100644
--- a/src/plugins/runner/open-source-routing-machine/OSRMRunner.cpp
+++ b/src/plugins/runner/open-source-routing-machine/OSRMRunner.cpp
@@ -206,9 +206,9 @@ GeoDataDocument *OSRMRunner::parse( const QByteArray &input ) const
GeoDataLineString* routeWaypoints = 0;
if ( data.property( "route_geometry" ).isString() ) {
result = new GeoDataDocument();
- result->setName( "Open Source Routing Machine" );
+ result->setName(QStringLiteral("Open Source Routing Machine"));
GeoDataPlacemark* routePlacemark = new GeoDataPlacemark;
- routePlacemark->setName( "Route" );
+ routePlacemark->setName(QStringLiteral("Route"));
routeWaypoints = decodePolyline( data.property( "route_geometry" ).toString() );
routePlacemark->setGeometry( routeWaypoints );
@@ -248,13 +248,13 @@ GeoDataDocument *OSRMRunner::parse( const QByteArray &input ) const
lastWaypointIndex = waypointIndex;
GeoDataExtendedData extendedData;
GeoDataData turnTypeData;
- turnTypeData.setName( "turnType" );
+ turnTypeData.setName(QStringLiteral("turnType"));
RoutingInstruction::TurnType turnType = parseTurnType( text );
turnTypeData.setValue( turnType );
extendedData.addValue( turnTypeData );
if (!road.isEmpty()) {
GeoDataData roadName;
- roadName.setName( "roadName" );
+ roadName.setName(QStringLiteral("roadName"));
roadName.setValue( road );
extendedData.addValue( roadName );
}
diff --git a/src/plugins/runner/openrouteservice/OpenRouteServiceRunner.cpp b/src/plugins/runner/openrouteservice/OpenRouteServiceRunner.cpp
index acf31b1..3317b2d 100644
--- a/src/plugins/runner/openrouteservice/OpenRouteServiceRunner.cpp
+++ b/src/plugins/runner/openrouteservice/OpenRouteServiceRunner.cpp
@@ -205,7 +205,7 @@ GeoDataDocument* OpenRouteServiceRunner::parse( const QByteArray &content ) cons
QDomElement root = xml.documentElement();
GeoDataDocument* result = new GeoDataDocument();
- result->setName( "OpenRouteService" );
+ result->setName(QStringLiteral("OpenRouteService"));
QDomNodeList errors = root.elementsByTagName(QStringLiteral("xls:Error"));
if ( errors.size() > 0 ) {
@@ -241,7 +241,7 @@ GeoDataDocument* OpenRouteServiceRunner::parse( const QByteArray &content ) cons
}
GeoDataPlacemark* routePlacemark = new GeoDataPlacemark;
- routePlacemark->setName( "Route" );
+ routePlacemark->setName(QStringLiteral("Route"));
QTime time;
QDomNodeList summary = root.elementsByTagName(QStringLiteral("xls:RouteSummary"));
if ( summary.size() > 0 ) {
@@ -325,14 +325,14 @@ GeoDataDocument* OpenRouteServiceRunner::parse( const QByteArray &content ) cons
QString const text = textNodes.item( 0 ).toElement().text().remove(QRegExp("<[^>]*>"));
GeoDataExtendedData extendedData;
GeoDataData turnTypeData;
- turnTypeData.setName( "turnType" );
+ turnTypeData.setName(QStringLiteral("turnType"));
QString road;
RoutingInstruction::TurnType turnType = parseTurnType( text, &road );
turnTypeData.setValue( turnType );
extendedData.addValue( turnTypeData );
if ( !road.isEmpty() ) {
GeoDataData roadName;
- roadName.setName( "roadName" );
+ roadName.setName(QStringLiteral("roadName"));
roadName.setValue( road );
extendedData.addValue( roadName );
}
diff --git a/src/plugins/runner/routino/RoutinoRunner.cpp b/src/plugins/runner/routino/RoutinoRunner.cpp
index d9ce81d..42cebdd 100644
--- a/src/plugins/runner/routino/RoutinoRunner.cpp
+++ b/src/plugins/runner/routino/RoutinoRunner.cpp
@@ -157,11 +157,11 @@ QVector<GeoDataPlacemark*> RoutinoRunnerPrivate::parseRoutinoInstructions( const
GeoDataPlacemark* placemark = new GeoDataPlacemark( directions[i].instructionText() );
GeoDataExtendedData extendedData;
GeoDataData turnType;
- turnType.setName( "turnType" );
+ turnType.setName(QStringLiteral("turnType"));
turnType.setValue( qVariantFromValue<int>( int( directions[i].turnType() ) ) );
extendedData.addValue( turnType );
GeoDataData roadName;
- roadName.setName( "roadName" );
+ roadName.setName(QStringLiteral("roadName"));
roadName.setValue( directions[i].roadName() );
extendedData.addValue( roadName );
placemark->setExtendedData( extendedData );
diff --git a/src/plugins/runner/shp/ShpRunner.cpp b/src/plugins/runner/shp/ShpRunner.cpp
index 7b0e9ae..12f1bd2 100644
--- a/src/plugins/runner/shp/ShpRunner.cpp
+++ b/src/plugins/runner/shp/ShpRunner.cpp
@@ -68,7 +68,7 @@ GeoDataDocument *ShpRunner::parseFile(const QString &fileName, DocumentRole role
GeoDataSchema schema;
schema.setId(QStringLiteral("default"));
GeoDataSimpleField simpleField;
- simpleField.setName("mapcolor13");
+ simpleField.setName(QStringLiteral("mapcolor13"));
simpleField.setType( GeoDataSimpleField::Double );
schema.addSimpleField( simpleField );
document->addSchema( schema );
diff --git a/src/plugins/runner/traveling-salesman/TravelingSalesmanRunner.cpp b/src/plugins/runner/traveling-salesman/TravelingSalesmanRunner.cpp
index cbfeb2b..ba6b6af 100644
--- a/src/plugins/runner/traveling-salesman/TravelingSalesmanRunner.cpp
+++ b/src/plugins/runner/traveling-salesman/TravelingSalesmanRunner.cpp
@@ -122,7 +122,7 @@ GeoDataDocument* TravelingSalesmanRunnerPrivate::createDocument( GeoDataLineStri
GeoDataDocument* result = new GeoDataDocument();
GeoDataPlacemark* routePlacemark = new GeoDataPlacemark;
- routePlacemark->setName( "Route" );
+ routePlacemark->setName(QStringLiteral("Route"));
routePlacemark->setGeometry( routeWaypoints );
result->append( routePlacemark );