summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-09 07:11:04 +0200
committerMontel Laurent <[email protected]>2017-05-09 07:11:14 +0200
commitf048b08701aafc82a04a3d34befb0930fdd8a20c (patch)
treef3a00390419117a9625f58bf1317a77f71da1872
parent5470c203996391525e6604c6da8458876d097a23 (diff)
Minor optimization
-rw-r--r--src/koeventpopupmenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/koeventpopupmenu.cpp b/src/koeventpopupmenu.cpp
index 9b44fa7..67d2255 100644
--- a/src/koeventpopupmenu.cpp
+++ b/src/koeventpopupmenu.cpp
@@ -167,7 +167,8 @@ void KOEventPopupMenu::showIncidencePopup(const Akonadi::Item &item, const QDate
(*it)->setVisible(incidence->type() == KCalCore::Incidence::TypeTodo);
(*it)->setEnabled(hasChangeRights);
}
- for (it = mEventOnlyItems.begin(); it != mEventOnlyItems.end(); ++it) {
+ end = mEventOnlyItems.end();
+ for (it = mEventOnlyItems.begin(); it != end; ++it) {
(*it)->setVisible(incidence->type() == KCalCore::Incidence::TypeEvent);
(*it)->setEnabled(hasChangeRights);
}