]> git.saurik.com Git - wxWidgets.git/commitdiff
fix wxDEFINE_EVENT_REFERENCE in wxEVENTS_COMPATIBILITY_2_8 case
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jan 2009 17:10:23 +0000 (17:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jan 2009 17:10:23 +0000 (17:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h

index cd8b991501b4a9b34fb126a6c78bb489a314c258..fd6866ee584449e4b3a81f93fbaf8a43d4c003ab 100644 (file)
@@ -105,10 +105,10 @@ extern WXDLLIMPEXP_BASE wxEventType wxNewEventType();
         extern const expdecl wxEventType name;
 
     #define wxDEFINE_EVENT_REFERENCE( name, type, value ) \
-        const wxEventType &name( value );
+        const wxEventType& name = value;
 
     #define wxDECLARE_EXPORTED_EVENT_REFERENCE( expdecl, name, type ) \
-        extern const expdecl wxEventType &name;
+        extern const expdecl wxEventTypename;
 
     #define wxDECLARE_LOCAL_EVENT( name, type ) \
         wxDECLARE_EXPORTED_EVENT( wxEMPTY_PARAMETER_VALUE, name, type )