diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-06-29 14:33:45 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-01 11:46:56 +0200 |
commit | e80c1bf24039ff36ff874f313be53ac2a70029de (patch) | |
tree | b4eb13182721454c1d88f05e6d3f72e931383874 /src/plugins | |
parent | 9e1ba742d3ffdaa4906b2aa1a031ee01a9f31a96 (diff) |
Eradicate Q_FOREACH loops and mark the module free of them
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 <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/webgl/qwebglintegration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |