From 420b62f2028d2331a729ef800b40dfc762d1613c Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 16 May 2012 09:39:39 +0200 Subject: 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 --- src/corelib/kernel/qcoreapplication_p.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/kernel/qcoreapplication_p.h') diff --git a/src/corelib/kernel/qcoreapplication_p.h b/src/corelib/kernel/qcoreapplication_p.h index 15aca398b7..33021d443f 100644 --- a/src/corelib/kernel/qcoreapplication_p.h +++ b/src/corelib/kernel/qcoreapplication_p.h @@ -109,6 +109,10 @@ public: #endif int &argc; char **argv; +#ifdef Q_OS_WIN + int origArgc; + char **origArgv; // store unmodified arguments for QCoreApplication::arguments() +#endif void appendApplicationPathToLibraryPaths(void); void cleanupThreadData(); -- cgit v1.2.3