From c2d122aa7d8f2b8d76aef0440b75cd640b56c707 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 6 Jul 2007 12:40:36 +0000 Subject: [PATCH] added missing wxUniChar::operator=(wxUniCharRef) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/unichar.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wx/unichar.h b/include/wx/unichar.h index e3bfb4c587..584b85cb4b 100644 --- a/include/wx/unichar.h +++ b/include/wx/unichar.h @@ -115,6 +115,7 @@ public: // Assignment operators: 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=(unsigned char c) { m_value = From8bit((char)c); return *this; } #if wxWCHAR_T_IS_SEPARATE_TYPE @@ -287,6 +288,12 @@ inline wxUniChar::wxUniChar(const wxUniCharRef& c) 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 // implemented in terms of member comparison functions -- 2.45.2