X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46c7e1a1203acb8c85b2f1b0243574634c2afb16..bbd55ff9564dcaf1a5d2ee93d789c4d656baabef:/src/x11/utils.cpp diff --git a/src/x11/utils.cpp b/src/x11/utils.cpp index 92c6b4c4e3..ffc6805717 100644 --- a/src/x11/utils.cpp +++ b/src/x11/utils.cpp @@ -370,7 +370,6 @@ void wxAllocColor(Display *d,Colormap cmp,XColor *xc) } } -#ifdef __WXDEBUG__ wxString wxGetXEventName(XEvent& event) { #if wxUSE_NANOX @@ -378,7 +377,7 @@ wxString wxGetXEventName(XEvent& event) return str; #else int type = event.xany.type; - static char* event_name[] = { + static const char* event_name[] = { "", "unknown(-)", // 0-1 "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease", // 2-5 "MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn", // 6-9 @@ -395,7 +394,6 @@ wxString wxGetXEventName(XEvent& event) return wxString::FromAscii(event_name[type]); #endif } -#endif bool wxWindowIsVisible(Window win) {