]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for IBM and HP compilers, which don't allow ->* operator with undefined class
authorPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 05:33:38 +0000 (05:33 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 05:33:38 +0000 (05:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h

index 4711b4d353c6e6b012593f89a530d9b07273b786..fb033e636a18a8a0118e95e6cdd748861ef2718b 100644 (file)
@@ -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.
 //