Commit e8973c57 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ref

parent ab3eb22b
Pipeline #64781 passed with stage
in 13 minutes and 51 seconds
......@@ -1240,7 +1240,7 @@ bool CalendarView::incidence_unsub(const Akonadi::Item &item)
return false;
}
for (const auto instance : mCalendar->instances(inc)) {
for (const auto &instance : mCalendar->instances(inc)) {
KCalendarCore::Incidence::Ptr oldInstance(instance->clone());
instance->setRelatedTo(QString());
(void) mChanger->modifyIncidence(mCalendar->item(instance), oldInstance, this);
......@@ -2149,7 +2149,7 @@ void CalendarView::deleteRecurringIncidence(const Akonadi::Item &todoItem)
if (!mChanger->deletedRecently(todoItem.id())) {
auto incidence = CalendarSupport::incidence(todoItem);
if (incidence->recurs()) {
for (const auto instance : mCalendar->instances(incidence)) {
for (const auto &instance : mCalendar->instances(incidence)) {
(void) mChanger->deleteIncidence(mCalendar->item(instance), this);
}
}
......
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