From d5d51013911372638585a50695a10e18c75b1e71 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 7 Mar 2005 19:22:00 +0000 Subject: [PATCH] fix to avoid eVC crashes: restored wxObjectEventFunction declaration so that it defines a wxObject method, not wxEvtHandler one git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/event.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/wx/event.h b/include/wx/event.h index 93b515af2b..0165b960e3 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -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 -- 2.45.2