X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d4f4290eaf2b60554ca3a0c53ffa8805012e155..c2e5616e067362c41c8103338323e0dab3a53f1e:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 64146b5b14..4c915163a3 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -57,11 +57,7 @@ typedef int wxEventType; // this is used to make the event table entry type safe, so that for an event // handler only a function with proper parameter list can be given. -#ifdef HAVE_STATIC_CAST - #define wxStaticCastEvent(type, val) static_cast(val) -#else - #define wxStaticCastEvent(type, val) ((type)(val)) -#endif +#define wxStaticCastEvent(type, val) wx_static_cast(type, val) // in previous versions of wxWindows the event types used to be constants // which created difficulties with custom/user event types definition