]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/unichar.h
No changes, just fix a typo in a comment in docview event handling code.
[wxWidgets.git] / include / wx / unichar.h
index be2ce619ed51c39b2a1123cb5579d7e9242e5ea3..a661e5a4e26440b23335e40fedec07208df2a305 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxUniChar and wxUniCharRef classes
 // Author:      Vaclav Slavik
 // Created:     2007-03-19
-// RCS-ID:      $Id$
 // Copyright:   (c) 2007 REA Elektronik GmbH
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -36,7 +35,7 @@ public:
     wxUniChar(unsigned char c) { m_value = From8bit((char)c); }
 
 #define wxUNICHAR_DEFINE_CTOR(type) \
-    wxUniChar(type c) { m_value = c; }
+    wxUniChar(type c) { m_value = (value_type)c; }
     wxDO_FOR_INT_TYPES(wxUNICHAR_DEFINE_CTOR)
 #undef wxUNICHAR_DEFINE_CTOR
 
@@ -112,7 +111,7 @@ public:
     wxUniChar& operator=(unsigned char c) { m_value = From8bit((char)c); return *this; }
 
 #define wxUNICHAR_DEFINE_OPERATOR_EQUAL(type) \
-    wxUniChar& operator=(type c) { m_value = c; return *this; }
+    wxUniChar& operator=(type c) { m_value = (value_type)c; return *this; }
     wxDO_FOR_INT_TYPES(wxUNICHAR_DEFINE_OPERATOR_EQUAL)
 #undef wxUNICHAR_DEFINE_OPERATOR_EQUAL