corrected (Do)GetWriteBuf() return types to use more appropriate type (no real difference)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1512,7 +1512,7 @@ public:
|
||||
//
|
||||
// get writable buffer of at least nLen bytes. Unget() *must* be called
|
||||
// a.s.a.p. to put string back in a reasonable state!
|
||||
wxDEPRECATED( wxChar *GetWriteBuf(size_t nLen) );
|
||||
wxDEPRECATED( wxStringCharType *GetWriteBuf(size_t nLen) );
|
||||
// call this immediately after GetWriteBuf() has been used
|
||||
wxDEPRECATED( void UngetWriteBuf() );
|
||||
wxDEPRECATED( void UngetWriteBuf(size_t nLen) );
|
||||
|
@@ -408,7 +408,7 @@ bool wxString::Shrink()
|
||||
|
||||
// deprecated compatibility code:
|
||||
#if WXWIN_COMPATIBILITY_2_8 && !wxUSE_STL_BASED_WXSTRING && !wxUSE_UNICODE_UTF8
|
||||
wxChar *wxString::GetWriteBuf(size_t nLen)
|
||||
wxStringCharType *wxString::GetWriteBuf(size_t nLen)
|
||||
{
|
||||
return DoGetWriteBuf(nLen);
|
||||
}
|
||||
|
@@ -754,7 +754,7 @@ bool wxStringImpl::ConcatSelf(size_t nSrcLen,
|
||||
|
||||
#if !wxUSE_UNICODE_UTF8
|
||||
// get the pointer to writable buffer of (at least) nLen bytes
|
||||
wxChar *wxStringImpl::DoGetWriteBuf(size_t nLen)
|
||||
wxStringCharType *wxStringImpl::DoGetWriteBuf(size_t nLen)
|
||||
{
|
||||
if ( !AllocBeforeWrite(nLen) ) {
|
||||
// allocation failure handled by caller
|
||||
|
Reference in New Issue
Block a user