From 6173e1d6f82b3bc205c1bebdc8481c1dbff4572f Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 19 Jun 2018 15:09:33 +0200 Subject: Build the Windows platform plugin with QT_NO_FOREACH ...for consistency with the other platform plugins. Change-Id: I85946d610a62c19140618c83f80c4aa63fce4bc3 Reviewed-by: Oliver Wolff --- src/plugins/platforms/windows/qwindowscontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforms/windows/qwindowscontext.cpp') diff --git a/src/plugins/platforms/windows/qwindowscontext.cpp b/src/plugins/platforms/windows/qwindowscontext.cpp index 7a9733ba01..a1bd5d20e9 100644 --- a/src/plugins/platforms/windows/qwindowscontext.cpp +++ b/src/plugins/platforms/windows/qwindowscontext.cpp @@ -547,7 +547,7 @@ void QWindowsContext::unregisterWindowClasses() { const HINSTANCE appInstance = static_cast(GetModuleHandle(0)); - foreach (const QString &name, d->m_registeredWindowClassNames) { + for (const QString &name : qAsConst(d->m_registeredWindowClassNames)) { if (!UnregisterClass(reinterpret_cast(name.utf16()), appInstance) && QWindowsContext::verbose) qErrnoWarning("UnregisterClass failed for '%s'", qPrintable(name)); } -- cgit v1.2.3