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/kconfigguitest.cpp | |
parent | 61995dafce78c1065d4eacba81673a7959a96cc9 (diff) | |
download | kconfig-ee2b394599ffe1242e3b7ae7d40b3469485dcd97.tar.gz kconfig-ee2b394599ffe1242e3b7ae7d40b3469485dcd97.tar.bz2 |
Fix some clazy warning
Diffstat (limited to 'autotests/kconfigguitest.cpp')
-rw-r--r-- | autotests/kconfigguitest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/autotests/kconfigguitest.cpp b/autotests/kconfigguitest.cpp index 9efcd1d8..657c3e16 100644 --- a/autotests/kconfigguitest.cpp +++ b/autotests/kconfigguitest.cpp @@ -42,7 +42,7 @@ void KConfigTest::initTestCase() KConfigSkeleton foo; Q_UNUSED(foo); - KConfig sc("kconfigtest"); + KConfig sc(QStringLiteral("kconfigtest")); KConfigGroup cg(&sc, "ComplexTypes"); cg.writeEntry("colorEntry1", COLORENTRY1); @@ -52,7 +52,7 @@ void KConfigTest::initTestCase() cg.writeEntry("fontEntry", FONTENTRY); QVERIFY(sc.sync()); - KConfig sc1("kdebugrc"); + KConfig sc1(QStringLiteral("kdebugrc")); KConfigGroup sg0(&sc1, "0"); sg0.writeEntry("AbortFatal", false); sg0.writeEntry("WarnOutput", 0); @@ -81,7 +81,7 @@ void KConfigTest::cleanupTestCase() void KConfigTest::testComplex() { - KConfig sc2("kconfigtest"); + KConfig sc2(QStringLiteral("kconfigtest")); KConfigGroup sc3(&sc2, "ComplexTypes"); QCOMPARE(QVariant(sc3.readEntry("colorEntry1", QColor(Qt::black))).toString(), @@ -99,7 +99,7 @@ void KConfigTest::testComplex() void KConfigTest::testInvalid() { - KConfig sc("kconfigtest"); + KConfig sc(QStringLiteral("kconfigtest")); // all of these should print a message to the kdebug.dbg file KConfigGroup sc3(&sc, "InvalidTypes"); @@ -108,7 +108,7 @@ void KConfigTest::testInvalid() // 1 element list list << 1; - sc3.writeEntry(QString("badList"), list); + sc3.writeEntry(QStringLiteral("badList"), list); QVERIFY(sc.sync()); QVERIFY(sc3.readEntry("badList", QColor()) == QColor()); |