forked from qt-creator/qt-creator
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:
@@ -107,10 +107,9 @@ Core::BaseFileWizard *GenericProjectWizard::create(QWidget *parent,
|
||||
const Core::WizardDialogParameters ¶meters) 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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user