X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ecd8ca468b0650612562f3db13483fe84fad930..9485b24f43766ad97ba1b77a70c7c1f2a40184a6:/src/dfb/app.cpp diff --git a/src/dfb/app.cpp b/src/dfb/app.cpp index 093bd63642..c95912e538 100644 --- a/src/dfb/app.cpp +++ b/src/dfb/app.cpp @@ -171,9 +171,7 @@ bool wxApp::Yield(bool onlyIfNeeded) return true; // can't process events from other threads #endif // wxUSE_THREADS - static bool s_inYield = false; - - if ( s_inYield ) + if ( m_isInsideYield ) { if ( !onlyIfNeeded ) { @@ -183,14 +181,14 @@ bool wxApp::Yield(bool onlyIfNeeded) return false; } - s_inYield = true; + m_isInsideYield = true; #if wxUSE_LOG wxLog::Suspend(); #endif // wxUSE_LOG wxEventLoop * const - loop = wx_static_cast(wxEventLoop *, wxEventLoop::GetActive()); + loop = static_cast(wxEventLoop::GetActive()); if ( loop ) loop->Yield(); @@ -203,7 +201,7 @@ bool wxApp::Yield(bool onlyIfNeeded) wxLog::Resume(); #endif // wxUSE_LOG - s_inYield = false; + m_isInsideYield = false; return true; }