From: <pst...@us...> - 2011-08-05 01:02:14
|
Revision: 871 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=871&view=rev Author: pstieber Date: 2011-08-05 01:02:08 +0000 (Fri, 05 Aug 2011) Log Message: ----------- Updated some string processing code. Modified Paths: -------------- trunk/jazz/src/DeprecatedWx/proplist.cpp Modified: trunk/jazz/src/DeprecatedWx/proplist.cpp =================================================================== --- trunk/jazz/src/DeprecatedWx/proplist.cpp 2011-08-05 00:48:35 UTC (rev 870) +++ trunk/jazz/src/DeprecatedWx/proplist.cpp 2011-08-05 01:02:08 UTC (rev 871) @@ -1822,8 +1822,6 @@ } m_listBox->Delete(sel); - delete[] (const wxChar *)(*node)->GetData(); - delete node; m_currentSelection = -1; m_stringText->SetValue(wxEmptyString); } @@ -1899,11 +1897,10 @@ m_stringText->SetValue(wxEmptyString); return; } - wxStringList::compatibility_iterator* node = - (wxStringList::compatibility_iterator*) + list<wxString>::iterator* piString = + (list<wxString>::iterator*) m_listBox->wxListBox::GetClientData(m_currentSelection); - const wxChar* txt = (const wxChar *)(*node)->GetData(); - m_stringText->SetValue(txt); + m_stringText->SetValue(**piString); m_stringText->Enable(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |