summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 05:53:10 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 05:53:10 (GMT)
commit9314489de88d33d195ac4d4f33113afca798a912 (patch)
tree8ed2d06e993b8c1f92ae5b341a72c4ecb60a6e35
parent26a345361113cef6a5fbd50725d97a3b3c4cec3b (diff)
Use isEmpty herev16.11.80
-rw-r--r--src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp2
-rw-r--r--src/progresswidget/progressmanager.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp b/src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp
index ce792bb..78f5cce 100644
--- a/src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp
+++ b/src/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp
@@ -201,7 +201,7 @@ void BlackListBalooEmailCompletionWidget::slotEmailFound(const QStringList &list
mEmailList->setEmailFound(list);
mMoreResult->setVisible(list.count() == mLimit);
mEmailList->scrollToBottom();
- if (list.count() == 0) {
+ if (list.isEmpty()) {
mNumberOfEmailsFound->setText(i18n("No email found."));
} else {
mNumberOfEmailsFound->setText(i18np("1 email found", "%1 emails found", list.count()));
diff --git a/src/progresswidget/progressmanager.cpp b/src/progresswidget/progressmanager.cpp
index 937e400..c781a79 100644
--- a/src/progresswidget/progressmanager.cpp
+++ b/src/progresswidget/progressmanager.cpp
@@ -100,7 +100,7 @@ void ProgressItem::removeChild(ProgressItem *kiddo)
}
// in case we were waiting for the last kid to go away, now is the time
- if (mChildren.count() == 0 && mWaitingForKids) {
+ if (mChildren.isEmpty() && mWaitingForKids) {
Q_EMIT progressItemCompleted(this);
}
}