X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0728199b911be9095406cf05059a5a180e707778..5b7668004bc161c56e2302d0910ee886b005cd69:/src/os2/app.cpp diff --git a/src/os2/app.cpp b/src/os2/app.cpp index 3620b182ac..f896e02201 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -35,6 +35,7 @@ #include "wx/stdpaths.h" #include "wx/filename.h" +#include "wx/evtloop.h" #include "wx/os2/private.h" @@ -447,8 +448,6 @@ bool wxApp::OnInitGui() wxApp::wxApp() { - argc = 0; - argv = NULL; m_nPrintMode = wxPRINT_WINDOWS; m_hMq = 0; m_maxSocketHandles = 0; @@ -458,23 +457,11 @@ wxApp::wxApp() wxApp::~wxApp() { - // - // Delete command-line args - // -#if wxUSE_UNICODE - int i; - - for (i = 0; i < argc; i++) - { - delete[] argv[i]; - } - delete[] argv; -#endif } // end of wxApp::~wxApp bool gbInOnIdle = false; -void wxApp::OnIdle( wxIdleEvent& rEvent ) +void wxApp::OnIdle( wxIdleEvent& WXUNUSED(rEvent) ) { // // Avoid recursion (via ProcessEvent default case) @@ -549,6 +536,7 @@ bool wxApp::Yield(bool onlyIfNeeded) // We want to go back to the main message loop // if we see a WM_QUIT. (?) // + wxEventLoopGuarantor dummyLoopIfNeeded; while (::WinPeekMsg(vHab, &vMsg, (HWND)NULL, 0, 0, PM_NOREMOVE) && vMsg.msg != WM_QUIT) { #if wxUSE_THREADS