aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigloadertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'autotests/kconfigloadertest.cpp')
-rw-r--r--autotests/kconfigloadertest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/autotests/kconfigloadertest.cpp b/autotests/kconfigloadertest.cpp
index ef3ac30e..1c818b7f 100644
--- a/autotests/kconfigloadertest.cpp
+++ b/autotests/kconfigloadertest.cpp
@@ -38,7 +38,7 @@ Q_DECLARE_METATYPE(QList<int>)
void ConfigLoaderTest::init()
{
- QString fileName = TEST_NAME + QString::fromLatin1(".xml");
+ QString fileName = TEST_NAME + QLatin1String(".xml");
configFile = new QFile(QFINDTESTDATA(QString::fromLatin1("/") + fileName));
cl = new KConfigLoader(configFile->fileName(), configFile);
}
@@ -118,11 +118,11 @@ void ConfigLoaderTest::stringListDefaultValue()
// Create a string list with the expected values.
QStringList expected;
- expected.append("One");
- expected.append("Two");
- expected.append("Three");
- expected.append("Four");
- expected.append("Five");
+ expected.append(QStringLiteral("One"));
+ expected.append(QStringLiteral("Two"));
+ expected.append(QStringLiteral("Three"));
+ expected.append(QStringLiteral("Four"));
+ expected.append(QStringLiteral("Five"));
QVERIFY(typeItem->isEqual(expected));
}