Commit da44df53 authored by Laurent Montel's avatar Laurent Montel 😁

Use const'ref

parent cbdb08b9
......@@ -100,7 +100,7 @@ void EwsFetchCalendarDetailJob::processItems(const QList<EwsGetItemRequest::Resp
qCDebugNC(EWSRES_LOG) << QStringLiteral("Found %1 events").arg(memcal->events().count());
KCalCore::Incidence::Ptr incidence;
if (memcal->events().count() > 1) {
Q_FOREACH (KCalCore::Event::Ptr event, memcal->events()) {
Q_FOREACH (const KCalCore::Event::Ptr &event, memcal->events()) {
qCDebugNC(EWSRES_LOG) << QString::number(event->recurrence()->recurrenceType(), 16) << event->recurrenceId() << event->recurrenceId().isValid();
if (!event->recurrenceId().isValid()) {
incidence = event;
......
......@@ -159,7 +159,7 @@ bool EwsUpdateFolderRequest::FolderChange::write(QXmlStreamWriter &writer) const
writer.writeStartElement(ewsTypeNsUri, QStringLiteral("Updates"));
Q_FOREACH (const QSharedPointer<const Update> upd, mUpdates) {
Q_FOREACH (const QSharedPointer<const Update> &upd, mUpdates) {
if (!upd->write(writer, mType)) {
retVal = false;
break;
......
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