Commit 4f029cda authored by Laurent Montel's avatar Laurent Montel 😁

Fix error found by cppcheck

parent 3c64334f
......@@ -135,7 +135,7 @@ void EwsFetchCalendarDetailJob::processItems(const QList<EwsGetItemRequest::Resp
item.setPayload<KCalCore::Incidence::Ptr>(incidence);
}
it++;
++it;
}
if (addItems.isEmpty()) {
......
......@@ -76,7 +76,6 @@ bool EwsItemBasePrivate::extendedPropertyReader(QXmlStreamReader &reader, QVaria
|| reader.name() == QStringLiteral("ExtendedFieldURI")) {
if (!prop.read(reader)) {
return false;
reader.skipCurrentElement();
}
reader.skipCurrentElement();
} else if (reader.name() == QStringLiteral("Value")) {
......
......@@ -234,7 +234,7 @@ bool ewsXmlEnumReader(QXmlStreamReader &reader, QVariant &val, QVector<QString>
}
int i = 0;
QVector<QString>::const_iterator it;
for (it = items.cbegin(); it != items.cend(); it++, i++) {
for (it = items.cbegin(); it != items.cend(); ++it, i++) {
if (text == *it) {
val = i;
break;
......
......@@ -793,7 +793,7 @@ void EwsResource::itemDeleteRequestFinished(KJob *job)
foldersToSync.append(colId);
}
}
it++;
++it;
}
if (!foldersToSync.isEmpty()) {
......
......@@ -158,7 +158,7 @@ void EwsFetchMailDetailJob::processItems(const QList<EwsGetItemRequest::Response
}
qCDebugNC(EWSRES_LOG) << "EwsFetchMailDetailJob::processItems:" << ewsHash(item.remoteId()) << item.flags();
it++;
++it;
}
qCDebugNC(EWSRES_LOG) << "EwsFetchMailDetailJob::processItems: done";
......
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