QCoreApplication: Removed out-of-date docs (argv() method).
QCoreApplication::argv() method was obsolete in Qt4.8 and removed in Qt5.0. Change-Id: I217402f774f5509c8ca317a35c831ffa5ac2af06 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
9f3f455151
commit
4f71a272b5
@ -394,7 +394,7 @@ QCoreApplicationPrivate::QCoreApplicationPrivate(int &aargc, char **aargv, uint
|
|||||||
static const char *const empty = "";
|
static const char *const empty = "";
|
||||||
if (argc == 0 || argv == 0) {
|
if (argc == 0 || argv == 0) {
|
||||||
argc = 0;
|
argc = 0;
|
||||||
argv = (char **)∅ // ouch! careful with QCoreApplication::argv()!
|
argv = (char **)∅
|
||||||
}
|
}
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
qCopy(argv, argv + argc, origArgv);
|
qCopy(argv, argv + argc, origArgv);
|
||||||
@ -589,10 +589,6 @@ void QCoreApplicationPrivate::initLocale()
|
|||||||
Note that some arguments supplied by the user may have been
|
Note that some arguments supplied by the user may have been
|
||||||
processed and removed by QCoreApplication.
|
processed and removed by QCoreApplication.
|
||||||
|
|
||||||
In cases where command line arguments need to be obtained using the
|
|
||||||
argv() function, you must convert them from the local string encoding
|
|
||||||
using QString::fromLocal8Bit().
|
|
||||||
|
|
||||||
\section1 Locale Settings
|
\section1 Locale Settings
|
||||||
|
|
||||||
On Unix/Linux Qt is configured to use the system locale settings by
|
On Unix/Linux Qt is configured to use the system locale settings by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user