From: Vadim Zeitlin Date: Thu, 20 Aug 2009 00:44:37 +0000 (+0000) Subject: Fix warning about converting literal strings to non-const char*. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ffbd0d14a65e9380350f2d70a76e592c740a4efe?ds=inline 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 --- diff --git a/src/x11/utils.cpp b/src/x11/utils.cpp index 0aa849ea29..ffc6805717 100644 --- a/src/x11/utils.cpp +++ b/src/x11/utils.cpp @@ -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