Remove explicit casts to (const char *), and replace it with .c_str();

use wxConstCast instead of explicit casts to char*.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-03-14 20:07:03 +00:00
parent f72199d117
commit d3a80c922c
14 changed files with 62 additions and 46 deletions

View File

@@ -180,7 +180,7 @@ void wxComboBox::SetValue(const wxString& value)
m_inSetValue = true;
XtVaSetValues( GetXmText(this),
XmNvalue, (char *)value.c_str(),
XmNvalue, wxConstCast(value.c_str(), char),
NULL);
m_inSetValue = false;
@@ -304,7 +304,7 @@ long wxComboBox::GetLastPosition() const
void wxComboBox::Replace(long from, long to, const wxString& value)
{
XmTextReplace( GetXmText(this), (XmTextPosition)from, (XmTextPosition)to,
(char*)value.c_str() );
wxConstCast(value.c_str(), char) );
}
void wxComboBox::Remove(long from, long to)