From: Václav Slavík Date: Thu, 29 Mar 2007 18:35:16 +0000 (+0000) Subject: added creation of wxUniChar from int and conversion to int, for backward compatibility X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/171d61321234d05e20cc9d0b5287f9d3fa2c40a8?ds=sidebyside added creation of wxUniChar from int and conversion to int, for backward compatibility git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/unichar.h b/include/wx/unichar.h index 8896425f1e..6581e3e769 100644 --- a/include/wx/unichar.h +++ b/include/wx/unichar.h @@ -98,6 +98,7 @@ public: wxUniChar& operator=(const wxUniChar& c) { m_value = c.m_value; return *this; } wxUniChar& operator=(char c) { m_value = From8bit(c); return *this; } wxUniChar& operator=(wchar_t c) { m_value = c; return *this; } + wxUniChar& operator=(int c) { m_value = c; return *this; } #ifdef wxWINT_T_IS_SEPARATE_TYPE wxUniChar& operator=(wint_t c) { m_value = c; return *this; } #endif @@ -170,6 +171,7 @@ public: wxUniCharRef& operator=(char c) { return *this = wxUniChar(c); } wxUniCharRef& operator=(wchar_t c) { return *this = wxUniChar(c); } + wxUniCharRef& operator=(int c) { return *this = wxUniChar(c); } #ifdef wxWINT_T_IS_SEPARATE_TYPE wxUniCharRef& operator=(wint_t c) { return *this = wxUniChar(c); } #endif