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
This commit is contained in:
parent
6346588525
commit
bd72306dc8
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user