X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2478fde622a16d25c66690af353dfdc37e7b582..c4709ea55c2299c61ecda2ac350370f656de16ca:/src/common/timercmn.cpp diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index 7371b1ffbf..90623b23eb 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -18,10 +18,6 @@ // wxWin headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "timerbase.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -32,6 +28,7 @@ #if wxUSE_TIMER #ifndef WX_PRECOMP + #include "wx/timer.h" #endif // ---------------------------------------------------------------------------- @@ -56,6 +53,7 @@ void wxTimerBase::Notify() wxCHECK_RET( m_owner, _T("wxTimer::Notify() should be overridden.") ); wxTimerEvent event(m_idTimer, m_milli); + event.SetEventObject(this); (void)m_owner->ProcessEvent(event); } @@ -83,7 +81,7 @@ bool wxTimerBase::Start(int milliseconds, bool oneShot) m_oneShot = oneShot; - return TRUE; + return true; } #endif // wxUSE_TIMER