forked from qt-creator/qt-creator
QMakeProjectManager: Replace foreach with ranged for loop
Change-Id: Ibdb526ac3e0cfbb0568e17c21a1b73f7749a84ed Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user