]> git.saurik.com Git - wxWidgets.git/commitdiff
added creation of wxUniChar from int and conversion to int, for backward compatibility
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 29 Mar 2007 18:35:16 +0000 (18:35 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 29 Mar 2007 18:35:16 +0000 (18:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/unichar.h

index 8896425f1eafe7a33e06b1976cdaebe720b59aa9..6581e3e76941637e252ef7090bb0d4f03a92aa61 100644 (file)
@@ -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