]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/timerimpl.cpp
cleaning up common OSX code
[wxWidgets.git] / src / common / timerimpl.cpp
index d952af816f79d9d2d44e46745f4cacc33b7bc140..4ab6fa8e23950216290c6ae1075ba22be5064a21 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "wx/private/timer.h"
 #include "wx/utils.h"               // for wxNewId()
+#include "wx/thread.h"
 
 wxTimerImpl::wxTimerImpl(wxTimer *timer)
 {
@@ -47,8 +48,7 @@ void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid)
 
 void wxTimerImpl::SendEvent()
 {
-    wxTimerEvent event(m_idTimer, m_milli);
-    event.SetEventObject(m_owner);
+    wxTimerEvent event(*m_timer);
     (void)m_owner->ProcessEvent(event);
 }