From d3eec168623f91a1df3a3f0de306a61294838777 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Tue, 22 Nov 2016 14:54:02 +0100 Subject: Remove support for WinRT 8.1 and Windows Phone 8.1 [ChangeLog][QtBase][General] Removed support for WinRT/Windows Phone 8.1. Task-number: QTBUG-57288 Change-Id: Ifd6d6780cbbdb710d99556ba3d2fb2e514d4f789 Reviewed-by: Oliver Wolff --- src/winmain/qtmain_winrt.cpp | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'src/winmain/qtmain_winrt.cpp') diff --git a/src/winmain/qtmain_winrt.cpp b/src/winmain/qtmain_winrt.cpp index b0e70608f9..13ca561d35 100644 --- a/src/winmain/qtmain_winrt.cpp +++ b/src/winmain/qtmain_winrt.cpp @@ -59,19 +59,7 @@ entry point within the newly created GUI thread. */ -#if _MSC_VER < 1900 -#include - -typedef struct -{ - int newmode; -} _startupinfo; -#endif // _MSC_VER < 1900 - extern "C" { -#if _MSC_VER < 1900 - int __getmainargs(int *argc, char ***argv, char ***env, int expandWildcards, _startupinfo *info); -#endif int main(int, char **); } @@ -102,7 +90,6 @@ typedef ITypedEventHandler= 1900 // I*EventArgs have no launch arguments, hence we // need to prepend the application binary manually wchar_t fn[513]; @@ -224,7 +209,6 @@ private: if (SUCCEEDED(res)) args.prepend(QString::fromWCharArray(fn, res).toUtf8().data()); -#endif _MSC_VER >= 1900 ResumeThread(mainThread); @@ -252,7 +236,6 @@ private: HRESULT __stdcall OnLaunched(ILaunchActivatedEventArgs *launchArgs) Q_DECL_OVERRIDE { -#if _MSC_VER >= 1900 ComPtr preArgs; HRESULT hr = launchArgs->QueryInterface(preArgs.GetAddressOf()); if (SUCCEEDED(hr)) { @@ -263,7 +246,7 @@ private: } commandLine = QString::fromWCharArray(GetCommandLine()).toUtf8(); -#endif + HString launchCommandLine; launchArgs->get_Arguments(launchCommandLine.GetAddressOf()); if (launchCommandLine.IsValid()) { @@ -329,9 +312,7 @@ private: pidFile = CreateFile2(reinterpret_cast(pidFileName.utf16()), GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ, CREATE_ALWAYS, ¶ms); // Install the develMode message handler -#ifndef Q_OS_WINPHONE defaultMessageHandler = qInstallMessageHandler(devMessageHandler); -#endif } // Wait for debugger before continuing if (debugWait) { @@ -396,11 +377,6 @@ int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { int argc = 0; char **argv = 0, **env = 0; -#if _MSC_VER < 1900 - _startupinfo info = { _query_new_mode() }; - if (int init = __getmainargs(&argc, &argv, &env, false, &info)) - return init; -#endif // _MSC_VER >= 1900 for (int i = 0; env && env[i]; ++i) { QByteArray var(env[i]); int split = var.indexOf('='); -- cgit v1.2.3