Gui: modernize C++: use range-based for loop
This commit is contained in:
@@ -83,9 +83,9 @@ DlgCustomizeImp::DlgCustomizeImp(QWidget* parent, Qt::WindowFlags fl)
|
||||
|
||||
// make sure that pages are ready to create
|
||||
GetWidgetFactorySupplier();
|
||||
for (QList<QByteArray>::Iterator it = _pages.begin(); it!=_pages.end(); ++it)
|
||||
for (const QByteArray& it : _pages)
|
||||
{
|
||||
addPage(WidgetFactory().createWidget((*it).constData()));
|
||||
addPage(WidgetFactory().createWidget(it.constData()));
|
||||
}
|
||||
|
||||
customLayout->addWidget(tabWidget, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user