X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99646f7ee4afb3d7d929e1d396e56de8c1aed622..52f96deca1baa3c5ac50eb1c22481ae21cb941fc:/include/wx/timer.h diff --git a/include/wx/timer.h b/include/wx/timer.h index 8c1724df97..51432d1610 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -49,6 +49,10 @@ public: void SetOwner(wxEvtHandler *owner, int id = -1) { m_owner = owner; m_idTimer = id; } +#ifdef __WXMAC_X__ + virtual ~wxTimerBase() {} // Added min for Mac X +#endif + // working with the timer // ---------------------- @@ -171,7 +175,8 @@ private: typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&); -#define EVT_TIMER(id, func) { wxEVT_TIMER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL}, +#define EVT_TIMER(id, func) \ + DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL), #endif // wxUSE_GUI