QCoreApplication: No longer hardcode arguments to be filtered out.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 16 May 2012 07:39:39 +0000 (09:39 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 May 2012 17:35:51 +0000 (19:35 +0200)
commit420b62f2028d2331a729ef800b40dfc762d1613c
treed8c0a0dd310c2234523b59174fc1ed8e8028a05d
parent83f796d2739fc927d671925541dec654d3492b94
QCoreApplication: No longer hardcode arguments to be filtered out.

On Windows, Unicode command line arguments are re-created from
the original command line filtering out the known arguments.
To avoid having to hard-code all arguments of derived application
classes, keep the original argv-array and use that to verify if
an argument is still present.

Task-number: QTBUG-25724
Change-Id: I5d7bbd9530b1b74e1dcd22a0edc4f323ef687d23
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/kernel/qcoreapplication.cpp
src/corelib/kernel/qcoreapplication_p.h