┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/kitemsettest.cpp
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2019-09-14 09:40:09 +0200
committerLaurent Montel <[email protected]>2019-09-14 09:40:09 +0200
commitda83e8cbdb0354f359bdf08d610693665989c9f1 (patch)
tree3d1806239ffb1714d9b6b40a8fe1703cf8cba449 /src/tests/kitemsettest.cpp
parent7165ea7afdf150600025f9c8ec28dadfe0b28406 (diff)
Use directly "isEmpty()"
Diffstat (limited to 'src/tests/kitemsettest.cpp')
-rw-r--r--src/tests/kitemsettest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/kitemsettest.cpp b/src/tests/kitemsettest.cpp
index 27f8413a7..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());
@@ -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;