From 171d61321234d05e20cc9d0b5287f9d3fa2c40a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 29 Mar 2007 18:35:16 +0000 Subject: [PATCH] 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 --- include/wx/unichar.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.45.2