X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7ae4a62645d369fbd6b8b5f3f0e12ee86536da1..8ecf7346462b78a53defa2684aaac83dbfa29521:/src/mgl/app.cpp diff --git a/src/mgl/app.cpp b/src/mgl/app.cpp index 1a614e3f81..c0338c7834 100644 --- a/src/mgl/app.cpp +++ b/src/mgl/app.cpp @@ -74,10 +74,11 @@ bool wxApp::Yield(bool onlyIfNeeded) wxLog::Suspend(); - if ( wxEventLoop::GetActive() ) + wxEventLoopBase * const eventLoop = wxEventLoop::GetActive(); + if ( eventLoop ) { - while (wxEventLoop::GetActive()->Pending()) - wxEventLoop::GetActive()->Dispatch(); + while (eventLoop->Pending()) + eventLoop->Dispatch(); } /* it's necessary to call ProcessIdle() to update the frames sizes which @@ -200,11 +201,6 @@ static void wxDestroyMGL_WM() IMPLEMENT_DYNAMIC_CLASS(wxApp,wxEvtHandler) -BEGIN_EVENT_TABLE(wxApp, wxEvtHandler) - EVT_IDLE(wxAppBase::OnIdle) -END_EVENT_TABLE() - - wxApp::wxApp() { }