]> git.saurik.com Git - wxWidgets.git/commitdiff
fix to avoid eVC crashes: restored wxObjectEventFunction declaration so that it defin...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Mar 2005 19:22:00 +0000 (19:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Mar 2005 19:22:00 +0000 (19:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h

index 93b515af2b02161f06e1275a2ff82f45cf55a8ef..0165b960e39cc75ebd31b63e352f279625f0dbb3 100644 (file)
@@ -2105,7 +2105,10 @@ private:
 // event handler and related classes
 // ============================================================================
 
-typedef void (wxEvtHandler::*wxObjectEventFunction)(wxEvent&);
+// for backwards compatibility and to prevent eVC 4 for ARM from crashing with
+// internal compiler error when compiling wx, we define wxObjectEventFunction
+// as a wxObject method even though it can only be a wxEvtHandler one
+typedef void (wxObject::*wxObjectEventFunction)(wxEvent&);
 
 // we can't have ctors nor base struct in backwards compatibility mode or
 // otherwise we won't be able to initialize the objects with an agregate, so