From e80c1bf24039ff36ff874f313be53ac2a70029de Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 29 Jun 2019 14:33:45 +0200 Subject: Eradicate Q_FOREACH loops and mark the module free of them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Q_FOREACH is scheduled for deprecation, or at the very least banned from use in Qt's own implementation. Change-Id: Ia83851d88da9fa94c901598a7500cf572db68b4e Reviewed-by: MÃ¥rten Nordheim --- src/plugins/platforms/webgl/qwebglintegration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/platforms/webgl/qwebglintegration.cpp b/src/plugins/platforms/webgl/qwebglintegration.cpp index 58e4be0..dfae866 100644 --- a/src/plugins/platforms/webgl/qwebglintegration.cpp +++ b/src/plugins/platforms/webgl/qwebglintegration.cpp @@ -136,7 +136,8 @@ void QWebGLIntegration::initialize() void QWebGLIntegration::destroy() { Q_D(QWebGLIntegration); - foreach (QWindow *w, qGuiApp->topLevelWindows()) + const auto tlws = qGuiApp->topLevelWindows(); + for (QWindow *w : tlws) w->destroy(); QWindowSystemInterface::handleScreenRemoved(d->screen); -- cgit v1.2.3