diff --git a/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp b/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp index 8739a012773..533bae400ca 100644 --- a/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp +++ b/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp @@ -1794,7 +1794,7 @@ public: void applyOperations(const QList> &operations) { - foreach (const QSharedPointer &op, operations) { + for (const QSharedPointer &op : operations) { if (op) { op->apply(this); opsDescr += QLatin1Char('(') + op->describe() + QLatin1String(") "); @@ -2044,7 +2044,7 @@ void tst_QWizard::combinations() { QFETCH(bool, ref); QFETCH(bool, testEquality); - QFETCH(QList>, operations); + QFETCH(const QList>, operations); TestWizard wizard; #if !defined(QT_NO_STYLE_WINDOWSVISTA)