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:
@@ -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
|
||||
|
Reference in New Issue
Block a user