From a6274fa39ae865b20d395817f30a6f7c83bd5ea9 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Wed, 9 Aug 2023 19:02:26 +0300 Subject: [PATCH] QMdiArea: port Q_FOREACH to ranged-for, one trivial case Straightforward, the code was already iterating over a local const copy, i.e. Q_FOREACH wasn't needed here. Pick-to: 6.6 6.5 Task-number: QTBUG-115803 Change-Id: I3e806c54ce56b6eb06431eea6aea1758c8ecd154 Reviewed-by: Ivan Solovev --- src/widgets/widgets/qmdiarea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/widgets/qmdiarea.cpp b/src/widgets/widgets/qmdiarea.cpp index e6a150968b..08ff93a7c3 100644 --- a/src/widgets/widgets/qmdiarea.cpp +++ b/src/widgets/widgets/qmdiarea.cpp @@ -890,7 +890,7 @@ void QMdiAreaPrivate::rearrange(Rearranger *rearranger) const bool reverseList = rearranger->type() == Rearranger::RegularTiler; const QList subWindows = subWindowList(activationOrder, reverseList); QSize minSubWindowSize; - foreach (QMdiSubWindow *child, subWindows) { + for (QMdiSubWindow *child : subWindows) { if (!sanityCheck(child, "QMdiArea::rearrange") || !child->isVisible()) continue; if (rearranger->type() == Rearranger::IconTiler) {