Commit 61a14566 authored by Volker Krause's avatar Volker Krause
Browse files

Remove unnecessary list copy

Summary: This also removes the last references to SortableList from here.

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D20305
parent 0223dce8
......@@ -1211,13 +1211,7 @@ Duration KARecurrence::regularInterval() const
DateTimeList KARecurrence::exDateTimes() const
{
const auto l = d->mRecurrence.exDateTimes();
DateTimeList rv;
rv.reserve(l.size());
for (const auto &qdt : l) {
rv << qdt;
}
return rv;
return d->mRecurrence.exDateTimes();
}
DateList KARecurrence::exDates() const
......@@ -1227,12 +1221,7 @@ DateList KARecurrence::exDates() const
void KARecurrence::setExDateTimes(const DateTimeList &exdates)
{
SortableList<QDateTime> l;
l.reserve(exdates.size());
for (const auto &kdt : exdates) {
l << kdt;
}
d->mRecurrence.setExDateTimes(l);
d->mRecurrence.setExDateTimes(exdates);
}
void KARecurrence::setExDates(const DateList &exdates)
......
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