Use wxStringBuffer[Length] instead of explicit calls to

wxString::get/UngetWriteBuffer.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-07-21 09:41:26 +00:00
parent 11d395f9d7
commit de564874d6
14 changed files with 60 additions and 77 deletions

View File

@@ -454,8 +454,7 @@ wxString wxListBox::GetString(int N) const
// +1 for terminating NUL
wxString result;
ListBox_GetText(GetHwnd(), N, result.GetWriteBuf(len + 1));
result.UngetWriteBuf();
ListBox_GetText(GetHwnd(), N, wxStringBuffer(result, len + 1));
return result;
}