X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de4983f3236c2043479abb21857aca958a7b61f0..c8841d1493e0d19085990c9e331dd85c4da45d8e:/include/wx/motif/private.h?ds=inline diff --git a/include/wx/motif/private.h b/include/wx/motif/private.h index 9895862d9d..f36fd8d6dd 100644 --- a/include/wx/motif/private.h +++ b/include/wx/motif/private.h @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 17/09/98 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -141,7 +140,11 @@ class wxXmString { void Init(const char *str) { - m_string = XmStringCreateLtoR((char *)str, XmSTRING_DEFAULT_CHARSET); + m_string = XmStringCreateLtoR + ( + const_cast(str), + const_cast(XmSTRING_DEFAULT_CHARSET) + ); } public: