added refcounting to wxCharBuffer to fix passing of wxCharBuffer to printf-like functions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-08-10 19:37:51 +00:00
parent f2448f2110
commit 5c1de526d2
2 changed files with 104 additions and 63 deletions

View File

@@ -2009,3 +2009,15 @@ wxUTF8StringBufferLength::~wxUTF8StringBufferLength()
wbuf.SetLength(wlen);
}
#endif // wxUSE_UNICODE_WCHAR
// ----------------------------------------------------------------------------
// wxCharBufferType<T>
// ----------------------------------------------------------------------------
template<>
wxCharTypeBuffer<char>::Data
wxCharTypeBuffer<char>::NullData(NULL);
template<>
wxCharTypeBuffer<wchar_t>::Data
wxCharTypeBuffer<wchar_t>::NullData(NULL);