diff --git a/ktnef/src/ktnefmain.cpp b/ktnef/src/ktnefmain.cpp index 22b708910..346401d1f 100644 --- a/ktnef/src/ktnefmain.cpp +++ b/ktnef/src/ktnefmain.cpp @@ -410,7 +410,7 @@ void KTNEFMain::extractTo(const QString &dirname) void KTNEFMain::contextMenuEvent(QContextMenuEvent *event) { QList list = mView->getSelection(); - if (!list.count()) { + if (list.isEmpty()) { return; } diff --git a/src/userfeedback/accountinfosource.cpp b/src/userfeedback/accountinfosource.cpp index 13cb2f60f..014a65e31 100644 --- a/src/userfeedback/accountinfosource.cpp +++ b/src/userfeedback/accountinfosource.cpp @@ -48,7 +48,7 @@ QVariant AccountInfoSource::data() int numberOfPop3 = 0; int numberOfKolab = 0; int numberOfEws = 0; - for (Akonadi::AgentInstance type : lst) { + for (const Akonadi::AgentInstance &type : lst) { const QString identifier = type.identifier(); if (identifier.startsWith(QLatin1String("akonadi_pop3_resource"))) { numberOfPop3++;