summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/kernel/qcoreapplication_win.cpp27
-rw-r--r--src/winmain/qtmain_win.cpp9
2 files changed, 1 insertions, 35 deletions
diff --git a/src/corelib/kernel/qcoreapplication_win.cpp b/src/corelib/kernel/qcoreapplication_win.cpp
index 67e509eeef..a9ca82c757 100644
--- a/src/corelib/kernel/qcoreapplication_win.cpp
+++ b/src/corelib/kernel/qcoreapplication_win.cpp
@@ -148,33 +148,6 @@ Q_CORE_EXPORT int qWinAppCmdShow() // get main window sho
}
#endif
-/*****************************************************************************
- qWinMain() - Initializes Windows. Called from WinMain() in qtmain_win.cpp
- *****************************************************************************/
-
-#if !defined(Q_OS_WINRT)
-
-// ### Qt6: FIXME: Consider removing this function. It is here for Active Qt
-// servers and for binary for compatibility to applications built with Qt 5.3
-// using qtmain.lib which calls it In Qt 5.4, qtmain.lib was changed to use
-// CommandLineToArgvW() without calling into Qt5Core.
-Q_CORE_EXPORT
-void qWinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdParam,
- int cmdShow, int &argc, QVector<char *> &argv)
-{
- Q_UNUSED(instance)
- Q_UNUSED(prevInstance)
- Q_UNUSED(cmdShow)
-
- const QStringList wArgv = qWinCmdArgs(QString::fromLocal8Bit(cmdParam));
- argv.clear();
- argc = wArgv.size();
- for (const QString &wArg : wArgv)
- argv.append(_strdup(wArg.toLocal8Bit().constData()));
-}
-
-#endif // !Q_OS_WINRT
-
#ifndef QT_NO_QOBJECT
#if defined(Q_OS_WIN) && !defined(QT_NO_DEBUG_STREAM)
diff --git a/src/winmain/qtmain_win.cpp b/src/winmain/qtmain_win.cpp
index 7087176110..5f90055762 100644
--- a/src/winmain/qtmain_win.cpp
+++ b/src/winmain/qtmain_win.cpp
@@ -61,16 +61,9 @@
linking to the Qt DLL.
When a Windows application starts, the WinMain function is
- invoked. WinMain calls qWinMain in the Qt DLL/library, which
- initializes Qt.
+ invoked.
*/
-QT_BEGIN_NAMESPACE
-
-extern void qWinMain(HINSTANCE, HINSTANCE, LPSTR, int, int &, QVector<char *> &);
-
-QT_END_NAMESPACE
-
QT_USE_NAMESPACE