allow passing wx[W]CharBuffer to wx vararg templates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-03-28 18:03:26 +00:00
parent a7ea63e21f
commit 359bd4d1a2
3 changed files with 41 additions and 0 deletions

View File

@@ -77,3 +77,16 @@ const char *wxArgNormalizer<const wchar_t*>::get() const
}
#endif // wxUSE_UNICODE_WCHAR / !wxUSE_UNICODE_WCHAR && wxUSE_WCHAR_T
// FIXME-UTF8: move this to the header once it's possible to include buffer.h
// without including wxcrt.h
wxArgNormalizer<wxCharBuffer>::wxArgNormalizer(const wxCharBuffer& buf)
: wxArgNormalizer<const char*>(buf.data())
{
}
wxArgNormalizer<wxWCharBuffer>::wxArgNormalizer(const wxWCharBuffer& buf)
: wxArgNormalizer<const wchar_t*>(buf.data())
{
}