Commit 7594b041 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix clazy warnings about calling first() on temporary

parent 8d1088c0
......@@ -148,7 +148,7 @@ void KCMPlymouth::getNewStuff(QQuickItem *ctx)
return;
}
KIO::file_copy(QUrl(entry.previewUrl(KNSCore::EntryInternal::PreviewBig1)), QUrl::fromLocalFile(QString(entry.installedFiles().first() + QStringLiteral(".png"))), -1, KIO::Overwrite | KIO::HideProgressInfo);
KIO::file_copy(QUrl(entry.previewUrl(KNSCore::EntryInternal::PreviewBig1)), QUrl::fromLocalFile(QString(entry.installedFiles().constFirst() + QStringLiteral(".png"))), -1, KIO::Overwrite | KIO::HideProgressInfo);
});
}
......
......@@ -106,7 +106,7 @@ int main(int argc, char **argv)
if (dir->entries().count() > 1) {
helperargs[QStringLiteral("theme")] = QFileInfo(archive->fileName()).baseName();
} else {
helperargs[QStringLiteral("theme")] = dir->entries().first();
helperargs[QStringLiteral("theme")] = dir->entries().constFirst();
}
} else {
helperargs[QStringLiteral("theme")] = themefile;
......
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