added missing wxUniChar::operator=(wxUniCharRef)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2007-07-06 12:40:36 +00:00
parent c4c6ada953
commit c2d122aa7d

View File

@ -115,6 +115,7 @@ public:
// Assignment operators: // Assignment operators:
wxUniChar& operator=(const wxUniChar& c) { m_value = c.m_value; return *this; } wxUniChar& operator=(const wxUniChar& c) { m_value = c.m_value; return *this; }
wxUniChar& operator=(const wxUniCharRef& c);
wxUniChar& operator=(char c) { m_value = From8bit(c); return *this; } wxUniChar& operator=(char c) { m_value = From8bit(c); return *this; }
wxUniChar& operator=(unsigned char c) { m_value = From8bit((char)c); return *this; } wxUniChar& operator=(unsigned char c) { m_value = From8bit((char)c); return *this; }
#if wxWCHAR_T_IS_SEPARATE_TYPE #if wxWCHAR_T_IS_SEPARATE_TYPE
@ -287,6 +288,12 @@ inline wxUniChar::wxUniChar(const wxUniCharRef& c)
m_value = c.UniChar().m_value; m_value = c.UniChar().m_value;
} }
inline wxUniChar& wxUniChar::operator=(const wxUniCharRef& c)
{
m_value = c.UniChar().m_value;
return *this;
}
// Comparison operators for the case when wxUniChar(Ref) is the second operand // Comparison operators for the case when wxUniChar(Ref) is the second operand
// implemented in terms of member comparison functions // implemented in terms of member comparison functions