diff options
author | Montel Laurent <montel@kde.org> | 2017-11-30 13:36:08 +0100 |
---|---|---|
committer | Montel Laurent <montel@kde.org> | 2017-11-30 13:36:08 +0100 |
commit | ee2b394599ffe1242e3b7ae7d40b3469485dcd97 (patch) | |
tree | b3158f3dc11d26bc5676015b4c56e55a85f4c71b /autotests/kconfigloadertest.cpp | |
parent | 61995dafce78c1065d4eacba81673a7959a96cc9 (diff) | |
download | kconfig-ee2b394599ffe1242e3b7ae7d40b3469485dcd97.tar.gz kconfig-ee2b394599ffe1242e3b7ae7d40b3469485dcd97.tar.bz2 |
Fix some clazy warning
Diffstat (limited to 'autotests/kconfigloadertest.cpp')
-rw-r--r-- | autotests/kconfigloadertest.cpp | 12 |
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)); } |