From 2839804c3530db6756d2eb4a081a442ad8b2f773 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 22 Jul 2009 23:23:01 +0000 Subject: [PATCH] Correct example in wxStringBufferLength documentation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/string.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/interface/wx/string.h b/interface/wx/string.h index 5d45fe40a4..db5eb2965e 100644 --- a/interface/wx/string.h +++ b/interface/wx/string.h @@ -1540,16 +1540,13 @@ wxString wxEmptyString; @code wxString theAnswer; - wxStringBuffer theAnswerBuffer(theAnswer, 1024); + wxStringBufferLength theAnswerBuffer(theAnswer, 1024); int nLength = GetMeaningOfLifeAsString(theAnswerBuffer); theAnswerBuffer.SetLength(nLength); if ( theAnswer != "42" ) wxLogError("Something is very wrong!"); @endcode - @todo - the example above does not make use of wxStringBufferLength?? - Note that the exact usage of this depends on whether or not wxUSE_STL is enabled. If wxUSE_STL is enabled, wxStringBuffer creates a separate empty character buffer, and if wxUSE_STL is disabled, it uses GetWriteBuf() from -- 2.45.2