From: David Elliott Date: Mon, 27 Oct 2003 03:42:30 +0000 (+0000) Subject: Changed all symbols with the name "id" to "timerid" to allow Objective-C++ X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c5c5dad5950a43edbb9a4e7144f44b8f3bd6bf80 Changed all symbols with the name "id" to "timerid" to allow Objective-C++ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/timer.h b/include/wx/generic/timer.h index acfed178ce..83a6e5c2e2 100644 --- a/include/wx/generic/timer.h +++ b/include/wx/generic/timer.h @@ -25,7 +25,7 @@ class WXDLLEXPORT wxTimer : public wxTimerBase { public: wxTimer() { Init(); } - wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) + wxTimer(wxEvtHandler *owner, int timerid = -1) : wxTimerBase(owner, timerid) { Init(); } ~wxTimer(); diff --git a/include/wx/timer.h b/include/wx/timer.h index ae71d604ee..1707d8346e 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -52,12 +52,12 @@ public: // ctor which allows to avoid having to override Notify() in the derived // class: the owner will get timer notifications which can be handled with // EVT_TIMER - wxTimerBase(wxEvtHandler *owner, int id = -1) - { Init(); SetOwner(owner, id); } + wxTimerBase(wxEvtHandler *owner, int timerid = -1) + { Init(); SetOwner(owner, timerid); } // same as ctor above - void SetOwner(wxEvtHandler *owner, int id = -1) - { m_owner = owner; m_idTimer = id; } + void SetOwner(wxEvtHandler *owner, int timerid = -1) + { m_owner = owner; m_idTimer = timerid; } virtual ~wxTimerBase(); @@ -161,7 +161,7 @@ private: class WXDLLEXPORT wxTimerEvent : public wxEvent { public: - wxTimerEvent(int id = 0, int interval = 0) : wxEvent(id) + wxTimerEvent(int timerid = 0, int interval = 0) : wxEvent(timerid) { m_eventType = wxEVT_TIMER; @@ -182,8 +182,8 @@ private: typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&); -#define EVT_TIMER(id, func) \ - DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL), +#define EVT_TIMER(timerid, func) \ + DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL), #endif // wxUSE_GUI && wxUSE_TIMER