Commit 126fc4e6 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Don't use deprecated QSet::toList()

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D28009
parent 3dad4e4c
......@@ -57,7 +57,11 @@ GetMetaDataJob::~GetMetaDataJob()
static QList<QByteArray> sort(const QSet<QByteArray> &set)
{
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QList<QByteArray> sortedEntries = set.toList();
#else
QList<QByteArray> sortedEntries(set.cbegin(), set.cend());
#endif
std::sort(sortedEntries.begin(), sortedEntries.end());
return sortedEntries;
}
......
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