summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-21 22:17:13 +0200
committerMontel Laurent <[email protected]>2017-08-21 22:18:09 +0200
commit3307694ada875bca062087c32988d31be16efcc8 (patch)
tree07a1dc780bc6bdd9c19fb19bdc7bd159429dc945
parente91de609afe36c2c0352a2a0a26a4e881f74c359 (diff)
Use isEmpty
-rw-r--r--messagelist/src/core/model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/messagelist/src/core/model.cpp b/messagelist/src/core/model.cpp
index 315199d..16799fb 100644
--- a/messagelist/src/core/model.cpp
+++ b/messagelist/src/core/model.cpp
@@ -1678,7 +1678,7 @@ MessageItem *ModelPrivate::guessMessageParent(MessageItem *mi)
auto messagesWithTheSameStrippedSubject = mThreadingCacheMessageSubjectMD5ToMessageItem.value(md5, nullptr);
if (messagesWithTheSameStrippedSubject) {
- Q_ASSERT(messagesWithTheSameStrippedSubject->count() > 0);
+ Q_ASSERT(!messagesWithTheSameStrippedSubject->isEmpty());
// Need to find the message with the maximum date lower than the one of this message
@@ -2797,7 +2797,7 @@ ModelPrivate::ViewItemJobResult ModelPrivate::viewItemJobStepInternalForJobPass1
// current parent rebuild the hierarchy on the fly.
bool needsImmediateReAttach = false;
- if (mThreadingCacheMessageInReplyToIdMD5ToMessageItem.count() > 0) { // unlikely
+ if (!mThreadingCacheMessageInReplyToIdMD5ToMessageItem.isEmpty()) { // unlikely
const auto lImperfectlyThreaded = mThreadingCacheMessageInReplyToIdMD5ToMessageItem.values(mi->messageIdMD5());
for (const auto it : lImperfectlyThreaded) {
Q_ASSERT(it->parent());