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:
Włodzimierz Skiba
2004-10-12 15:30:08 +00:00
parent 4413571533
commit 84f7327f47

View File

@@ -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;
}