Fix warning about converting literal strings to non-const char*.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-08-20 00:44:37 +00:00
parent b275d34752
commit ffbd0d14a6

View File

@@ -377,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