tst_QWizard: port away from Q_FOREACH[2/5]: WizardPages::shown()
This is safe to port to a ranged for loop, as it's iterating over a private member container that is not modified under iteration (WizardPage::shown() is just returning a boolean member). Task-number: QTBUG-115803 Pick-to: 6.6 6.5 Change-Id: I50891e4b7509bd64399a128a5ee47d7795374f8e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>bb10
parent
88464f7e93
commit
d0a4b29132
|
|
@ -2113,7 +2113,7 @@ public:
|
|||
QList<WizardPage *> shown() const
|
||||
{
|
||||
QList<WizardPage *> result;
|
||||
foreach (WizardPage *page, pages)
|
||||
for (WizardPage *page : pages)
|
||||
if (page->shown())
|
||||
result << page;
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in New Issue