]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/motif/private.h
Define INVALID_FILE_ATTRIBUTES in filename.cpp too.
[wxWidgets.git] / 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: