Undo last change due to STL.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -513,9 +513,7 @@ wxString wxListBox::GetString(int N) const
|
||||
|
||||
// +1 for terminating NUL
|
||||
wxString result;
|
||||
wxChar* buffer = result.GetWriteBuf(len + 1);
|
||||
ListBox_GetText(GetHwnd(), N, buffer);
|
||||
result.UngetWriteBuf();
|
||||
ListBox_GetText(GetHwnd(), N, wxStringBuffer(result, len + 1));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user