From: Vadim Zeitlin Date: Mon, 11 Jun 2001 12:19:06 +0000 (+0000) Subject: another attempt to fix strconv.cpp compilation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eccf1b2c7651b72cce91a83e3f2778e6325a955b another attempt to fix strconv.cpp compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 900b6814a5..462faa010a 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -97,7 +97,7 @@ WXDLLEXPORT_DATA(wxMBConv *) wxConvCurrent = &wxConvLibc; #ifdef WC_UTF16 -static size_t encode_utf16(wxUint32 input, wxUint16 *output) +static size_t encode_utf16(wxUint32 input, wchar_t *output) { if (input<=0xffff) { @@ -119,7 +119,7 @@ static size_t encode_utf16(wxUint32 input, wxUint16 *output) } } -static size_t decode_utf16(const wxUint16* input, wxUint32& output) +static size_t decode_utf16(const wchar_t* input, wxUint32& output) { if ((*input<0xd800) || (*input>0xdfff)) { @@ -357,7 +357,7 @@ size_t wxMBConvUTF8::WC2MB(char *buf, const wchar_t *psz, size_t n) const { wxUint32 cc; #ifdef WC_UTF16 - size_t pa = decode_utf16((wchar_t*) psz,cc); + size_t pa = decode_utf16(psz, cc); psz += (pa == (size_t)-1) ? 1 : pa; #else cc=(*psz++) & 0x7fffffff;