From 4f71a272b57c5e63b9fb166cbc352c305f3c7ef7 Mon Sep 17 00:00:00 2001 From: Tomasz Olszak Date: Mon, 1 Jul 2013 22:24:55 +0000 Subject: 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 --- src/corelib/kernel/qcoreapplication.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/corelib') diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index c3a05551b8..efb1289a5c 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -394,7 +394,7 @@ QCoreApplicationPrivate::QCoreApplicationPrivate(int &aargc, char **aargv, uint static const char *const empty = ""; if (argc == 0 || argv == 0) { argc = 0; - argv = (char **)∅ // ouch! careful with QCoreApplication::argv()! + argv = (char **)∅ } #ifdef Q_OS_WIN qCopy(argv, argv + argc, origArgv); @@ -589,10 +589,6 @@ void QCoreApplicationPrivate::initLocale() Note that some arguments supplied by the user may have been 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 On Unix/Linux Qt is configured to use the system locale settings by -- cgit v1.2.3