Commit dd0ba538 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated methods

parent 74dc6f8e
Pipeline #181341 passed with stage
in 3 minutes and 12 seconds
......@@ -18,6 +18,7 @@
#include <KConfig>
#include <KConfigGroup>
#include <KWordWrap>
#include <kcalcore_version.h>
#include <KLocalizedString>
#include <QAbstractTextDocumentLayout>
......@@ -1782,7 +1783,11 @@ void CalPrintPluginBase::drawTodo(int &count,
for (const KCalendarCore::Todo::Ptr &todo : std::as_const(t)) {
tl.append(todo);
}
#if KCALCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
KCalendarCore::Todo::List sl = mCalendar->sortTodos(tl, sortField, sortDir);
#else
KCalendarCore::Todo::List sl = mCalendar->sortTodos(std::move(tl), sortField, sortDir);
#endif
#endif
int subcount = 0;
......
Supports Markdown
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