QMakeProjectManager: Replace foreach with ranged for loop

Change-Id: Ibdb526ac3e0cfbb0568e17c21a1b73f7749a84ed
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2022-09-30 13:13:35 +02:00
parent 0d13cfe652
commit 8741ce6afc
10 changed files with 92 additions and 87 deletions

View File

@@ -87,10 +87,10 @@ QList<void *> QmakeProjectImporter::examineDirectory(const FilePath &importPath,
QList<void *> result;
const QLoggingCategory &logs = MakeFileParse::logging();
QStringList makefiles = QDir(importPath.toString()).entryList(QStringList(QLatin1String("Makefile*")));
const QStringList makefiles = QDir(importPath.toString()).entryList(QStringList(("Makefile*")));
qCDebug(logs) << " Makefiles:" << makefiles;
foreach (const QString &file, makefiles) {
for (const QString &file : makefiles) {
std::unique_ptr<DirectoryData> data(new DirectoryData);
data->makefile = file;
data->buildDirectory = importPath;