From ffbd0d14a65e9380350f2d70a76e592c740a4efe Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Aug 2009 00:44:37 +0000 Subject: [PATCH] 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 --- src/x11/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0