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

use const'ref

parent c9f6cd5a
......@@ -417,11 +417,11 @@ void AlarmDialog::dismissAll()
Q_EMIT reminderCount(activeCount());
}
void AlarmDialog::dismiss(ReminderList selections)
void AlarmDialog::dismiss(const ReminderList &selections)
{
QList<Akonadi::Item::Id> ids;
ids.reserve(selections.count());
for (ReminderList::Iterator it = selections.begin(); it != selections.end(); ++it) {
for (ReminderList::const_iterator it = selections.constBegin(); it != selections.constEnd(); ++it) {
qCDebug(KOALARMCLIENT_LOG) << "removing " << CalendarSupport::incidence((*it)->mIncidence)->summary();
if (mIncidenceTree->itemBelow(*it)) {
mIncidenceTree->setCurrentItem(mIncidenceTree->itemBelow(*it));
......
......@@ -119,7 +119,7 @@ private:
bool startKOrganizer();
ReminderTreeItem *searchByItem(const Akonadi::Item &incidence);
void setTimer();
void dismiss(ReminderList selections);
void dismiss(const ReminderList &selections);
int activeCount();
ReminderList selectedItems() const;
void toggleDetails(QTreeWidgetItem *item);
......
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