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
This commit is contained in:
@@ -237,12 +237,7 @@ public:
|
|||||||
m_method = method;
|
m_method = method;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void operator()(wxEvtHandler *handler, wxEvent& event)
|
virtual void operator()(wxEvtHandler *handler, wxEvent& event);
|
||||||
{
|
|
||||||
wxEvtHandler * const realHandler = m_handler ? m_handler : handler;
|
|
||||||
|
|
||||||
(realHandler->*m_method)(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual bool Matches(const wxEventFunctor& func) const
|
virtual bool Matches(const wxEventFunctor& func) const
|
||||||
{
|
{
|
||||||
@@ -3401,6 +3396,13 @@ private:
|
|||||||
wxDECLARE_NO_ASSIGN_CLASS(wxEventConnectionRef);
|
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
|
// Post a message to the given event handler which will be processed during the
|
||||||
// next event loop iteration.
|
// next event loop iteration.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user