Commit 5d98c6c1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 0ad6adbc
......@@ -410,7 +410,7 @@ void KTNEFMain::extractTo(const QString &dirname)
void KTNEFMain::contextMenuEvent(QContextMenuEvent *event)
{
QList<KTNEFAttach *> list = mView->getSelection();
if (!list.count()) {
if (list.isEmpty()) {
return;
}
......
......@@ -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++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment