aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-21 14:04:56 +0200
committerMontel Laurent <[email protected]>2017-06-21 14:04:56 +0200
commit4d0933ccdffee891430a9adc9eb3caa4b3f164d0 (patch)
tree0efb49c5f70574057e031dc177a216ce2f129692
parent3ca3df850c8525ea5888426679ba3a35eaed297f (diff)
Minor
-rw-r--r--src/scheduler_p.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/scheduler_p.cpp b/src/scheduler_p.cpp
index 2fcd357..66e0e6a 100644
--- a/src/scheduler_p.cpp
+++ b/src/scheduler_p.cpp
@@ -474,10 +474,8 @@ void Scheduler::acceptReply(const IncidenceBase::Ptr &incidenceBase,
//get matching attendee in calendar
qCDebug(AKONADICALENDAR_LOG) << "match found!";
Attendee::List attendeesIn = incidenceBase->attendees();
- Attendee::List attendeesEv;
Attendee::List attendeesNew;
-
- attendeesEv = incidence->attendees();
+ Attendee::List attendeesEv = incidence->attendees();
Attendee::List::ConstIterator inIt;
Attendee::List::ConstIterator evIt;
for (inIt = attendeesIn.constBegin(); inIt != attendeesIn.constEnd(); ++inIt) {
@@ -502,8 +500,8 @@ void Scheduler::acceptReply(const IncidenceBase::Ptr &incidenceBase,
}
bool attendeeAdded = false;
- for (Attendee::List::ConstIterator it = attendeesNew.constBegin();
- it != attendeesNew.constEnd(); ++it) {
+ for (Attendee::List::ConstIterator it = attendeesNew.constBegin(), end = attendeesNew.constEnd();
+ it != end; ++it) {
Attendee::Ptr attNew = *it;
QString msg =
i18nc("@info", "%1 wants to attend %2 but was not invited.",