X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e711d5c093dcc758e3f1670caf845612ea9fa92..c822ad5a5e30a21ca3340af644bf79804cf7c777:/include/wx/timer.h diff --git a/include/wx/timer.h b/include/wx/timer.h index c7459e9152..b5b5cfab04 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -49,9 +49,7 @@ public: void SetOwner(wxEvtHandler *owner, int id = -1) { m_owner = owner; m_idTimer = id; } -#ifdef __DARWIN__ - virtual ~wxTimerBase() { } -#endif + virtual ~wxTimerBase(); // working with the timer // ---------------------- @@ -109,6 +107,8 @@ protected: #include "wx/motif/timer.h" #elif defined(__WXGTK__) #include "wx/gtk/timer.h" +#elif defined(__WXX11__) + #include "wx/x11/timer.h" #elif defined(__WXMGL__) #include "wx/mgl/timer.h" #elif defined(__WXMAC__) @@ -167,6 +167,9 @@ public: // accessors int GetInterval() const { return m_interval; } + // implement the base class pure virtual + virtual wxEvent *Clone() const { return new wxTimerEvent(*this); } + private: int m_interval;