]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/utils.cpp
non-pch build fix
[wxWidgets.git] / src / x11 / utils.cpp
index 92c6b4c4e3e6f6c4975d6058cd407ea6deb65d41..ffc6805717632501877a0413574939f19a0b6641 100644 (file)
@@ -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)
 {