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

Port deprecated toSet() methods

parent 62c2e070
......@@ -256,7 +256,12 @@ void DavItemsListJob::davJobFinished(KJob *job)
}
}
QSet<QString> removed = d->mEtagCache->urls().toSet();
const auto etagCacheUrls = d->mEtagCache->urls();
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
QSet<QString> removed = etagCacheUrls.toSet();
#else
QSet<QString> removed(etagCacheUrls.begin(), etagCacheUrls.end());
#endif
removed.subtract(d->mSeenUrls);
d->mDeletedItems = removed.values();
......
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