From bd72306dc85fd14c3a91c4a5783a8c7b0df41c27 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 22 Mar 2007 15:24:28 +0000 Subject: [PATCH] added conversion to unsigned int too: this is needed to be able to pass s[n] to standard toxxx/isyyy() functions under Windows when _MBCS is defined as they're mapped to _mbzzz(unsigned int) in this case git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45016 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 e321791b85..5c37f2df35 100644 --- a/include/wx/unichar.h +++ b/include/wx/unichar.h @@ -56,6 +56,7 @@ public: operator wint_t() const { return m_value; } #endif operator int() const { return m_value; } + operator unsigned int() const { return m_value; } // We need this operator for the "*p" part of expressions like "for ( // const_iterator p = begin() + nStart; *p; ++p )". In this case, @@ -186,6 +187,7 @@ public: operator wint_t() const { return UniChar(); } #endif operator int() const { return UniChar(); } + operator unsigned int() const { return UniChar(); } // see wxUniChar::operator bool etc. for explanation operator bool() const { return (bool)UniChar(); }