winmain: port the last remaining Q_FOREACH loop and add QT_NO_FOREACH

Port the last remaining Q_FOREACH (over a QVarLengthArray,
no less) in winmain to C++11 range-for and mark the library
as Q_FOREACH-free, using QT_NO_FOREACH.

Change-Id: Ic561080f7dd61d1d853ceb9e211c9b8a23bf05a5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
This commit is contained in:
Marc Mutz 2016-05-11 11:53:02 +02:00
parent d70205cd2b
commit 99ca471014
2 changed files with 3 additions and 1 deletions

View File

@ -298,7 +298,7 @@ private:
bool develMode = false;
bool debugWait = false;
foreach (const char *arg, args) {
for (const char *arg : args) {
if (strcmp(arg, "-qdevel") == 0)
develMode = true;
if (strcmp(arg, "-qdebug") == 0)

View File

@ -8,6 +8,8 @@ DESTDIR = $$QT.core.libs
CONFIG += static
QT = core
DEFINES += QT_NO_FOREACH
contains(QT_CONFIG, build_all):CONFIG += build_all
win32-msvc*:QMAKE_CFLAGS_DEBUG -= -Zi