]> git.saurik.com Git - wxWidgets.git/commitdiff
Undo last change due to STL.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 12 Oct 2004 15:30:08 +0000 (15:30 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 12 Oct 2004 15:30:08 +0000 (15:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listbox.cpp

index 1fc6d08142d39e81e4752ae2159ffa2ad8c348ea..84e7896bdf2715c3788a4c2f4809c2144f42e207 100644 (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;
 }