diff options
Diffstat (limited to 'tests/auto/widgets/kernel/qwidget')
-rw-r--r-- | tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index ebdb3b83c4..e522ec6d05 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -5204,10 +5204,8 @@ void tst_QWidget::setWindowGeometry_data() const bool skipEmptyRects = (m_platform == QStringLiteral("windows")); for (Rects l : qAsConst(rects)) { - if (skipEmptyRects) { - l.erase(std::remove_if(l.begin(), l.end(), [] (const QRect &r) { return r.isEmpty(); }), - l.end()); - } + if (skipEmptyRects) + l.removeIf([] (const QRect &r) { return r.isEmpty(); }); const QRect &rect = l.constFirst(); for (int windowFlag : windowFlags) { QTest::newRow(QString("%1,%2 %3x%4, flags %5") |