Commit b2281067 authored by Laurent Montel's avatar Laurent Montel 😁

Port qSort method

parent b7d9084b
......@@ -289,8 +289,9 @@ void EventDataVisitorTest::testEventDataIdVisitor()
auto results = visitor.results();
qSort(results);
qSort(expectedUids);
std::sort(results.begin(), results.end());
std::sort(expectedUids.begin(), expectedUids.end());
QCOMPARE(results, expectedUids);
}
......
......@@ -128,8 +128,8 @@ void PimCalendarsModel::saveConfig()
auto group = config->group("PIMEventsPlugin");
auto savedList = group.readEntry("calendars", QList<qint64>());
auto currentList = mEnabledCalendars.toList();
qSort(savedList);
qSort(currentList);
std::sort(savedList.begin(), savedList.end());
std::sort(currentList.begin(), currentList.end());
if (currentList != savedList) {
group.writeEntry("calendars", currentList);
......
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