From 1b396d1ffc41db744d2c166060524ba3cad70220 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 10 Oct 2018 23:03:09 +0300 Subject: Set explicit arg type in QCOMPARE --- autotests/kconfigtest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'autotests/kconfigtest.cpp') 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().name() < b[0].value().name(); }); - QCOMPARE(watcherSpy[0][0].value().name(), "TopLevelGroup"); + QCOMPARE(watcherSpy[0][0].value().name(), QStringLiteral("TopLevelGroup")); QCOMPARE(watcherSpy[0][1].value(), QByteArrayList({"entryA"})); - QCOMPARE(watcherSpy[1][0].value().name(), "aSubGroup"); - QCOMPARE(watcherSpy[1][0].value().parent().name(), "TopLevelGroup"); + QCOMPARE(watcherSpy[1][0].value().name(), QStringLiteral("aSubGroup")); + QCOMPARE(watcherSpy[1][0].value().parent().name(), QStringLiteral("TopLevelGroup")); QCOMPARE(watcherSpy[1][1].value(), 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().name(), "TopLevelGroup"); + QCOMPARE(watcherSpy[0][0].value().name(), QStringLiteral("TopLevelGroup")); QCOMPARE(watcherSpy[0][1].value(), 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().name(), "aSubGroup"); + QCOMPARE(watcherSpy[0][0].value().name(), QStringLiteral("aSubGroup")); QCOMPARE(watcherSpy[0][1].value(), 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().name(), "TopLevelGroup"); + QCOMPARE(watcherSpy[0][0].value().name(), QStringLiteral("TopLevelGroup")); QCOMPARE(watcherSpy[0][1].value(), QByteArrayList({"someGlobalEntry"})); //watching another file should have only triggered from the kdeglobals change QCOMPARE(otherWatcherSpy.count(), 1); - QCOMPARE(otherWatcherSpy[0][0].value().name(), "TopLevelGroup"); + QCOMPARE(otherWatcherSpy[0][0].value().name(), QStringLiteral("TopLevelGroup")); QCOMPARE(otherWatcherSpy[0][1].value(), QByteArrayList({"someGlobalEntry"})); } -- cgit v1.2.1