Various plugins: Replace foreach with ranged for loop

Change-Id: If212c5e277de671b3ddd67d26ad1bdbc69213174
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2022-10-05 13:47:56 +02:00
parent bc4c1faf73
commit 9feeb81847
5 changed files with 10 additions and 10 deletions

View File

@@ -107,10 +107,9 @@ Core::BaseFileWizard *GenericProjectWizard::create(QWidget *parent,
const Core::WizardDialogParameters &parameters) const
{
auto wizard = new GenericProjectWizardDialog(this, parent);
wizard->setFilePath(parameters.defaultPath());
foreach (QWizardPage *p, wizard->extensionPages())
const QList<QWizardPage *> pages = wizard->extensionPages();
for (QWizardPage *p : pages)
wizard->addPage(p);
return wizard;
@@ -138,7 +137,7 @@ Core::GeneratedFiles GenericProjectWizard::generateFiles(const QWizard *w,
QStringList includePaths;
const QDir dir(projectPath.toString());
foreach (const QString &path, paths) {
for (const QString &path : paths) {
QFileInfo fileInfo(path);
QDir thisDir(fileInfo.absoluteFilePath());