Commit 7e11fb92 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 4a14d4d3
Pipeline #61722 passed with stage
in 5 minutes and 36 seconds
......@@ -45,7 +45,7 @@ void CollectionLoader::onCollectionsLoaded(KJob *job)
for (const Akonadi::Collection &collection : collections) {
const QStringList contentMimeTypesLst = collection.contentMimeTypes();
QSet<QString> collectionMimeTypeSet = QSet<QString>(contentMimeTypesLst.begin(), contentMimeTypesLst.end());
if (!mimeTypeSet.intersect(collectionMimeTypeSet).isEmpty()) {
if (mimeTypeSet.intersects(collectionMimeTypeSet)) {
m_collections << collection;
}
}
......
......@@ -89,7 +89,7 @@ bool KonsoleKalendar::printCalendarList()
const QStringList contentMimeTypes = collection.contentMimeTypes();
auto collectionMimeTypeSet = QSet<QString>(contentMimeTypes.begin(), contentMimeTypes.end());
if (!mimeTypeSet.intersect(collectionMimeTypeSet).isEmpty()) {
if (mimeTypeSet.intersects(collectionMimeTypeSet)) {
QString colId = QString::number(collection.id()).leftJustified(6, QLatin1Char(' '));
colId += QLatin1String("- ");
......
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