summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-02 18:54:22 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-03 01:49:47 (GMT)
commita4cd48aa6eb32d4bddd9342aaf1af24b90325877 (patch)
treed00c93898aa0abefe2d146e1a0225f52836d198d
parent1c2ef0e7151ebb018432f4db418d8356cd2b3fd5 (diff)
Use QStringLiteral with PlanetFactory::construct
-rw-r--r--src/lib/marble/GeoUriParser.cpp4
-rw-r--r--src/lib/marble/MarbleModel.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/marble/GeoUriParser.cpp b/src/lib/marble/GeoUriParser.cpp
index 5dd0814..c045046 100644
--- a/src/lib/marble/GeoUriParser.cpp
+++ b/src/lib/marble/GeoUriParser.cpp
@@ -22,7 +22,7 @@ namespace Marble {
GeoUriParser::GeoUriParser( const QString& geoUri )
: m_geoUri( geoUri ),
m_coordinates(),
- m_planet( PlanetFactory::construct( "earth" ) )
+ m_planet(PlanetFactory::construct(QStringLiteral("earth")))
{
}
@@ -30,7 +30,7 @@ void GeoUriParser::setGeoUri( const QString &geoUri )
{
m_geoUri = geoUri;
m_coordinates = GeoDataCoordinates();
- m_planet = PlanetFactory::construct( "earth" );
+ m_planet = PlanetFactory::construct(QStringLiteral("earth"));
}
QString GeoUriParser::geoUri() const
diff --git a/src/lib/marble/MarbleModel.cpp b/src/lib/marble/MarbleModel.cpp
index 13d89cd..06ca661 100644
--- a/src/lib/marble/MarbleModel.cpp
+++ b/src/lib/marble/MarbleModel.cpp
@@ -78,7 +78,7 @@ class MarbleModelPrivate
public:
MarbleModelPrivate()
: m_clock(),
- m_planet( PlanetFactory::construct( "earth" ) ),
+ m_planet(PlanetFactory::construct(QStringLiteral("earth"))),
m_sunLocator( &m_clock, &m_planet ),
m_pluginManager(),
m_homePoint( -9.4, 54.8, 0.0, GeoDataCoordinates::Degree ), // Some point that tackat defined. :-)