X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed7919869508ccd5c868683c28706f82e82a1b9b..65e4e78efb62104d4d0f9ac32e3fff24f9c14b6e:/include/wx/timer.h?ds=sidebyside diff --git a/include/wx/timer.h b/include/wx/timer.h index 30e48fca44..30491db2ff 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -41,7 +41,7 @@ public: // class: the owner will get timer notifications which can be handled with // EVT_TIMER wxTimerBase(wxEvtHandler *owner, int id = -1) - { Init(); SetOwner(owner, -1); } + { Init(); SetOwner(owner, id); } // same as ctor above void SetOwner(wxEvtHandler *owner, int id = -1) @@ -158,8 +158,8 @@ public: // ctor starts the stop watch wxStopWatch() { Start(); } void Start(long t = 0); - inline void Pause() { m_pause = GetElapsedTime(); } - inline void Resume() { Start(m_pause); } + void Pause() { m_pause = GetElapsedTime(); } + void Resume() { Start(m_pause); } // get elapsed time since the last Start() or Pause() in milliseconds long Time() const;