From c87a0bc8cb73b38f9bf7e8d67620f504c0ea4aea Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= <vslavik@fastmail.fm> Date: Tue, 24 Apr 2007 15:51:51 +0000 Subject: [PATCH] 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 --- include/wx/string.h | 2 +- src/common/string.cpp | 2 +- src/common/stringimpl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/string.h b/include/wx/string.h index 33c57f68e0..9efab68ffb 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -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) ); diff --git a/src/common/string.cpp b/src/common/string.cpp index 9fc84b0878..25f604519c 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -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); } diff --git a/src/common/stringimpl.cpp b/src/common/stringimpl.cpp index 0f1380e708..ecf9ea5b1b 100644 --- a/src/common/stringimpl.cpp +++ b/src/common/stringimpl.cpp @@ -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 -- 2.47.2