Commit 90c593fb authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 2fdadc15
......@@ -289,7 +289,8 @@ bool DndFactory::cutIncidences(const Incidence::List &incidences)
{
if (copyIncidences(incidences)) {
Incidence::List::ConstIterator it;
for (it = incidences.constBegin(); it != incidences.constEnd(); ++it) {
const Incidence::List::ConstIterator end(incidences.constEnd());
for (it = incidences.constBegin(); it != end; ++it) {
d->mCalendar->deleteIncidence(*it);
}
return true;
......
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