Fix some wxMotif build warnings about deprecated methods.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-01-18 13:01:17 +00:00
parent 52c71b808f
commit fd304d989b
11 changed files with 63 additions and 46 deletions

View File

@@ -137,10 +137,10 @@ int wxComboBox::DoAppend(const wxString& item)
void wxComboBox::Delete(int n)
{
XmComboBoxDeletePos((Widget) m_mainWidget, n+1);
wxNode *node = m_stringList.Nth(n);
wxStringList::Node *node = m_stringList.Item(n);
if (node)
{
delete[] (char *)node->Data();
delete[] node->GetData();
delete node;
}
m_clientDataDict.Delete(n, HasClientObjectData());
@@ -173,9 +173,9 @@ int wxComboBox::GetSelection (void) const
wxString wxComboBox::GetString(int n) const
{
wxNode *node = m_stringList.Nth(n);
wxStringList::Node *node = m_stringList.Item(n);
if (node)
return wxString((char *) node->Data ());
return wxString(node->GetData ());
else
return wxEmptyString;
}