aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigtest.cpp
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2018-10-10 23:03:09 +0300
committerDavid Edmundson <kde@davidedmundson.co.uk>2018-10-10 23:03:09 +0300
commit1b396d1ffc41db744d2c166060524ba3cad70220 (patch)
treed458eca95c2cbc7501d16cf310c28f35c5a24caf /autotests/kconfigtest.cpp
parent7d022cdc37b5cce54d762c45c159d13aff1f97c4 (diff)
downloadkconfig-1b396d1ffc41db744d2c166060524ba3cad70220.tar.gz
kconfig-1b396d1ffc41db744d2c166060524ba3cad70220.tar.bz2
Set explicit arg type in QCOMPARE
Diffstat (limited to 'autotests/kconfigtest.cpp')
-rw-r--r--autotests/kconfigtest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/autotests/kconfigtest.cpp b/autotests/kconfigtest.cpp
index 01c08770..45fe8e53 100644
--- a/autotests/kconfigtest.cpp
+++ b/autotests/kconfigtest.cpp
@@ -1825,11 +1825,11 @@ void KConfigTest::testNotify()
return a[0].value<KConfigGroup>().name() < b[0].value<KConfigGroup>().name();
});
- QCOMPARE(watcherSpy[0][0].value<KConfigGroup>().name(), "TopLevelGroup");
+ QCOMPARE(watcherSpy[0][0].value<KConfigGroup>().name(), QStringLiteral("TopLevelGroup"));
QCOMPARE(watcherSpy[0][1].value<QByteArrayList>(), QByteArrayList({"entryA"}));
- QCOMPARE(watcherSpy[1][0].value<KConfigGroup>().name(), "aSubGroup");
- QCOMPARE(watcherSpy[1][0].value<KConfigGroup>().parent().name(), "TopLevelGroup");
+ QCOMPARE(watcherSpy[1][0].value<KConfigGroup>().name(), QStringLiteral("aSubGroup"));
+ QCOMPARE(watcherSpy[1][0].value<KConfigGroup>().parent().name(), QStringLiteral("TopLevelGroup"));
QCOMPARE(watcherSpy[1][1].value<QByteArrayList>(), QByteArrayList({"entry1", "entry2"}));
//delete an entry
@@ -1838,7 +1838,7 @@ void KConfigTest::testNotify()
config.sync();
watcherSpy.wait();
QCOMPARE(watcherSpy.count(), 1);
- QCOMPARE(watcherSpy[0][0].value<KConfigGroup>().name(), "TopLevelGroup");
+ QCOMPARE(watcherSpy[0][0].value<KConfigGroup>().name(), QStringLiteral("TopLevelGroup"));
QCOMPARE(watcherSpy[0][1].value<QByteArrayList>(), QByteArrayList({"entryA"}));
//deleting a group, should notify that every entry in that group has changed
@@ -1847,7 +1847,7 @@ void KConfigTest::testNotify()
config.sync();
watcherSpy.wait();
QCOMPARE(watcherSpy.count(), 1);
- QCOMPARE(watcherSpy[0][0].value<KConfigGroup>().name(), "aSubGroup");
+ QCOMPARE(watcherSpy[0][0].value<KConfigGroup>().name(), QStringLiteral("aSubGroup"));
QCOMPARE(watcherSpy[0][1].value<QByteArrayList>(), QByteArrayList({"entry1", "entry2"}));
//global write still triggers our notification
@@ -1856,11 +1856,11 @@ void KConfigTest::testNotify()
config.sync();
watcherSpy.wait();
QCOMPARE(watcherSpy.count(), 1);
- QCOMPARE(watcherSpy[0][0].value<KConfigGroup>().name(), "TopLevelGroup");
+ QCOMPARE(watcherSpy[0][0].value<KConfigGroup>().name(), QStringLiteral("TopLevelGroup"));
QCOMPARE(watcherSpy[0][1].value<QByteArrayList>(), QByteArrayList({"someGlobalEntry"}));
//watching another file should have only triggered from the kdeglobals change
QCOMPARE(otherWatcherSpy.count(), 1);
- QCOMPARE(otherWatcherSpy[0][0].value<KConfigGroup>().name(), "TopLevelGroup");
+ QCOMPARE(otherWatcherSpy[0][0].value<KConfigGroup>().name(), QStringLiteral("TopLevelGroup"));
QCOMPARE(otherWatcherSpy[0][1].value<QByteArrayList>(), QByteArrayList({"someGlobalEntry"}));
}