define wxUTF8Buf as the type returned by wxString::utf8_str()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-10-20 22:52:36 +00:00
parent 48510f6156
commit 30386aeb86
2 changed files with 9 additions and 12 deletions

View File

@@ -226,6 +226,13 @@ typedef wxWritableCharTypeBuffer<wchar_t> wxWritableWCharBuffer;
#define wxWX2WCbuf wxWCharBuffer
#endif // Unicode/ANSI
// type of the value returned by wxString::utf8_str()
#if wxUSE_UNICODE_UTF8
#define wxUTF8Buf wxCharBuffer
#else
#define wxUTF8Buf char *
#endif
// ----------------------------------------------------------------------------
// A class for holding growable data buffers (not necessarily strings)
// ----------------------------------------------------------------------------