X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bd4f2812dca25f2c693ba27e5c117deee71fb3e..cbeda384e51acb82e13994cb67ac1714669cae10:/include/wx/unichar.h diff --git a/include/wx/unichar.h b/include/wx/unichar.h index 2b93bf9c88..9d0b593bd7 100644 --- a/include/wx/unichar.h +++ b/include/wx/unichar.h @@ -16,7 +16,7 @@ #include "wx/stringimpl.h" class WXDLLIMPEXP_FWD_BASE wxUniCharRef; -class WXDLLIMPEXP_FWD_BASE wxStringIteratorNode; +class WXDLLIMPEXP_FWD_BASE wxString; // This class represents single Unicode character. It can be converted to // and from char or wchar_t and implements commonly used character operations. @@ -155,7 +155,7 @@ private: { #if wxUSE_UNICODE if ( c < 0x80 ) - return c; + return wx_truncate_cast(char, c); return ToHi8bit(c); #else