X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b1bd0c6e7ed45535fabc574f69b7670fc28191e..695c21b11876abafeb68195e34f9f55816f92949:/src/motif/combobox.cpp?ds=inline diff --git a/src/motif/combobox.cpp b/src/motif/combobox.cpp index 5e81729e67..fb3e685bf1 100644 --- a/src/motif/combobox.cpp +++ b/src/motif/combobox.cpp @@ -126,7 +126,8 @@ void wxComboBox::SetValue(const wxString& value) { m_inSetValue = TRUE; if( !value.empty() ) - XmComboBoxSetString( (Widget)m_mainWidget, (char*)value.c_str() ); + XmComboBoxSetString( (Widget)m_mainWidget, + wxConstCast(value.c_str(), char) ); m_inSetValue = FALSE; } @@ -253,8 +254,9 @@ long wxComboBox::GetLastPosition() const void wxComboBox::Replace(long from, long to, const wxString& value) { - XmComboBoxReplace ((Widget) m_mainWidget, (XmTextPosition) from, (XmTextPosition) to, - (char*) (const char*) value); + XmComboBoxReplace ((Widget) m_mainWidget, (XmTextPosition) from, + (XmTextPosition) to, + wxConstCast(value.c_str(), char)); } void wxComboBox::Remove(long from, long to)