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:
@@ -161,6 +161,23 @@ struct wxArgNormalizer<wchar_t*> : public wxArgNormalizer<const wchar_t*>
|
||||
|
||||
#endif // wxUSE_UNICODE_WCHAR / !wxUSE_UNICODE_WCHAR && wxUSE_WCHAR_T
|
||||
|
||||
// versions for passing wx[W]CharBuffer:
|
||||
template<>
|
||||
struct WXDLLIMPEXP_BASE wxArgNormalizer<wxCharBuffer>
|
||||
: public wxArgNormalizer<const char*>
|
||||
{
|
||||
wxArgNormalizer(const wxCharBuffer& buf);
|
||||
};
|
||||
|
||||
template<>
|
||||
struct WXDLLIMPEXP_BASE wxArgNormalizer<wxWCharBuffer>
|
||||
: public wxArgNormalizer<const wchar_t*>
|
||||
{
|
||||
wxArgNormalizer(const wxWCharBuffer& buf);
|
||||
};
|
||||
|
||||
|
||||
|
||||
// NB: The vararg emulation code is limited to 30 arguments at the moment.
|
||||
// If you need more, you need to
|
||||
// 1) increase the value of _WX_VARARG_MAX_ARGS
|
||||
|
Reference in New Issue
Block a user