]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix warning about converting literal strings to non-const char*.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Aug 2009 00:44:37 +0000 (00:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Aug 2009 00:44:37 +0000 (00:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/utils.cpp

index 0aa849ea29cc8f8e11ff0326d8149614577a9e74..ffc6805717632501877a0413574939f19a0b6641 100644 (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