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:
Václav Slavík
2007-04-24 15:51:51 +00:00
parent baf3d1dc0a
commit c87a0bc8cb
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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