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:
@@ -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())
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user