From: Paul Cornett Date: Thu, 19 Feb 2009 05:33:38 +0000 (+0000) Subject: fix for IBM and HP compilers, which don't allow ->* operator with undefined class X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e8f9c7d1b062ad83470bec928395d6745900870e?ds=sidebyside fix for IBM and HP compilers, which don't allow ->* operator with undefined class git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/event.h b/include/wx/event.h index 4711b4d353..fb033e636a 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -237,12 +237,7 @@ public: m_method = method; } - virtual void operator()(wxEvtHandler *handler, wxEvent& event) - { - wxEvtHandler * const realHandler = m_handler ? m_handler : handler; - - (realHandler->*m_method)(event); - } + virtual void operator()(wxEvtHandler *handler, wxEvent& event); virtual bool Matches(const wxEventFunctor& func) const { @@ -3401,6 +3396,13 @@ private: wxDECLARE_NO_ASSIGN_CLASS(wxEventConnectionRef); }; +inline void wxObjectEventFunctor::operator()(wxEvtHandler *handler, wxEvent& event) +{ + wxEvtHandler * const realHandler = m_handler ? m_handler : handler; + + (realHandler->*m_method)(event); +} + // Post a message to the given event handler which will be processed during the // next event loop iteration. //