summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-21 06:54:20 +0200
committerMontel Laurent <[email protected]>2017-04-21 06:54:20 +0200
commit4cf3f6bd857be7a8ed4edf7e24ffde8902dece58 (patch)
tree64da29e61774dc6f7b22df3a3db895766a47445c
parentc9f6cd5a59ed9606caf8fda0aad24aec1c33f047 (diff)
use const'ref
-rw-r--r--korgac/alarmdialog.cpp4
-rw-r--r--korgac/alarmdialog.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/korgac/alarmdialog.cpp b/korgac/alarmdialog.cpp
index 2fd53c4..0384dd9 100644
--- a/korgac/alarmdialog.cpp
+++ b/korgac/alarmdialog.cpp
@@ -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));
diff --git a/korgac/alarmdialog.h b/korgac/alarmdialog.h
index 9e0c298..df01070 100644
--- a/korgac/alarmdialog.h
+++ b/korgac/alarmdialog.h
@@ -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);