X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05adb9d2fdc40d8620730be490bf406b8e367cf8..77436c4cbac2269e564dc4fcf4494a58feca0af4:/include/wx/mac/timer.h?ds=inline diff --git a/include/wx/mac/timer.h b/include/wx/mac/timer.h index 1554893d8e..1c4469e9a5 100644 --- a/include/wx/mac/timer.h +++ b/include/wx/mac/timer.h @@ -31,7 +31,8 @@ typedef struct MacTimerInfo class WXDLLEXPORT wxTimer: public wxTimerBase { public: - wxTimer(); + wxTimer() { Init(); } + wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) { Init(); } ~wxTimer(); virtual bool Start(int milliseconds = -1, @@ -41,7 +42,10 @@ public: virtual bool IsRunning() const ; MacTimerInfo m_info; +protected : + void Init(); private: + DECLARE_ABSTRACT_CLASS(wxTimer) };