X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/848abc5922167a467bb73107ee6b72e9af3c8317..d1a70c0b629b:/src/tests/kitemsettest.cpp?ds=inline diff --git a/src/tests/kitemsettest.cpp b/src/tests/kitemsettest.cpp index 3e74184c2..ca2c16b27 100644 --- a/src/tests/kitemsettest.cpp +++ b/src/tests/kitemsettest.cpp @@ -203,7 +203,7 @@ void KItemSetTest::testIterators() QVERIFY(itemSet.isValid()); QVERIFY(itemSet.count() == itemsQVector.count()); - if (itemSet.count() == 0) { + if (itemSet.isEmpty()) { QVERIFY(itemSet.isEmpty()); QVERIFY(itemSet.begin() == itemSet.end()); QVERIFY(itemSet.constBegin() == itemSet.constEnd()); @@ -326,7 +326,7 @@ void KItemSetTest::testFind_data() /** * Test all functions that find items: - * contais(int), find(int), constFind(int) + * contains(int), find(int), constFind(int) */ void KItemSetTest::testFind() { @@ -342,7 +342,7 @@ void KItemSetTest::testFind() int min; int max; - if (itemSet.count() == 0) { + if (itemSet.isEmpty()) { // Use some arbitrary values for the upcoming tests. min = 0; max = 5; @@ -401,7 +401,7 @@ void KItemSetTest::testChangingOneItem() int min; int max; - if (itemSet.count() == 0) { + if (itemSet.isEmpty()) { // Use some arbitrary values for the upcoming tests. min = 0; max = 5; @@ -498,7 +498,7 @@ void KItemSetTest::testChangingOneItem() QCOMPARE(tmp.end(), tmp.find(i)); QCOMPARE(tmp.constEnd(), tmp.constFind(i)); - // Check the returen value, now contained in 'it'. + // Check the returned value, now contained in 'it'. if (i == max) { QCOMPARE(it, tmp.end()); } else {