]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress warning about implicit conversion of literal string XmSTRING_DEFAULT_CHARSET...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Jun 2009 14:49:09 +0000 (14:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Jun 2009 14:49:09 +0000 (14:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/motif/private.h

index 9895862d9df4a0a17ec1933068097accb2aee3ff..5b05c6e249aaa6211adf6ebe10654268606b5a81 100644 (file)
@@ -141,7 +141,11 @@ class wxXmString
 {
     void Init(const char *str)
     {
-        m_string = XmStringCreateLtoR((char *)str, XmSTRING_DEFAULT_CHARSET);
+        m_string = XmStringCreateLtoR
+                   (
+                    const_cast<char *>(str),
+                    const_cast<char *>(XmSTRING_DEFAULT_CHARSET)
+                   );
     }
 
 public: