summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-12 15:15:52 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-12 15:15:52 (GMT)
commite8e7d21bdca274070762dc19f469f974a6f8c4f7 (patch)
treed68ea2f150d8b2a714908c09ce837561b2e6c26a
parent9ba38b28fbb381e9f2acda7987ced3b93f07dfd6 (diff)
Use isEmpty
-rw-r--r--messagecomposer/src/composer/composer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/messagecomposer/src/composer/composer.cpp b/messagecomposer/src/composer/composer.cpp
index f26408a..f82bcfe 100644
--- a/messagecomposer/src/composer/composer.cpp
+++ b/messagecomposer/src/composer/composer.cpp
@@ -344,7 +344,7 @@ void ComposerPrivate::contentJobFinished(KJob *job)
headers->setHeader(realTo);
headers->assemble();
} else { // just use the saved headers from before
- if (encData.size() > 0) {
+ if (!encData.isEmpty()) {
qCDebug(MESSAGECOMPOSER_LOG) << "setting enc data:" << encData[ 0 ].first << "with num keys:" << encData[ 0 ].second.size();
keys = encData[ 0 ].second;
recipients = encData[ 0 ].first;