summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-08-31 12:40:57 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-08-31 12:40:57 (GMT)
commitdd5e1550ee69708a89c3601ab1577a7aa43fe729 (patch)
treea485ca6ba53dc1f26efbdf6be258c1e3a6fd8ca8
parenta14cab5883010d9e251de26e96cbe079550369fe (diff)
kml reader: Use QStringLiteral for creating QString objects from raw strings
-rw-r--r--src/plugins/runner/kml/KmlRunner.cpp2
-rw-r--r--src/plugins/runner/kml/KmzHandler.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/runner/kml/KmlRunner.cpp b/src/plugins/runner/kml/KmlRunner.cpp
index 5254266..ca6165c 100644
--- a/src/plugins/runner/kml/KmlRunner.cpp
+++ b/src/plugins/runner/kml/KmlRunner.cpp
@@ -51,7 +51,7 @@ GeoDataDocument *KmlRunner::parseFile(const QString &fileName, DocumentRole role
QFile file( kmlFileName );
if ( !file.exists() ) {
- error = QString("File %1 does not exist").arg(kmlFileName);
+ error = QStringLiteral("File %1 does not exist").arg(kmlFileName);
mDebug() << error;
return nullptr;
}
diff --git a/src/plugins/runner/kml/KmzHandler.cpp b/src/plugins/runner/kml/KmzHandler.cpp
index 88e39b2..d94583f 100644
--- a/src/plugins/runner/kml/KmzHandler.cpp
+++ b/src/plugins/runner/kml/KmzHandler.cpp
@@ -20,7 +20,7 @@ bool KmzHandler::open(const QString &kmz, QString &error)
{
MarbleZipReader zip( kmz );
if ( zip.status() != MarbleZipReader::NoError ) {
- error = QString("Failed to extract %1: error code %2").arg(kmz).arg(zip.status());
+ error = QStringLiteral("Failed to extract %1: error code %2").arg(kmz).arg(zip.status());
mDebug() << error;
return false;
}
@@ -28,7 +28,7 @@ bool KmzHandler::open(const QString &kmz, QString &error)
QString const uuid = QUuid::createUuid().toString().mid(1, 8);
QString const filename = QDir::tempPath() + QLatin1String("/marble-kmz-") + uuid;
if (!QDir::root().mkpath(filename)) {
- error = QString("Failed to create temporary storage %1 for extracting %2").arg(filename).arg(kmz);
+ error = QStringLiteral("Failed to create temporary storage %1 for extracting %2").arg(filename).arg(kmz);
mDebug() << error;
return false;
}
@@ -36,7 +36,7 @@ bool KmzHandler::open(const QString &kmz, QString &error)
m_kmzPath = filename + QLatin1Char('/');
if (!zip.extractAll( m_kmzPath ))
{
- error = QString("Failed to extract kmz file contents to %1").arg(m_kmzPath);
+ error = QStringLiteral("Failed to extract kmz file contents to %1").arg(m_kmzPath);
mDebug() << error;
return false;
}