explicitly cast m_value to the resulting type in wxUniChar's integer conversion operators to silence compiler warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
56eeb97339
commit
d4e5987995
@ -92,14 +92,14 @@ public:
|
||||
operator char() const { return To8bit(m_value); }
|
||||
operator unsigned char() const { return (unsigned char)To8bit(m_value); }
|
||||
#if wxWCHAR_T_IS_SEPARATE_TYPE
|
||||
operator wchar_t() const { return m_value; }
|
||||
operator wchar_t() const { return (wchar_t)m_value; }
|
||||
#endif
|
||||
operator int() const { return m_value; }
|
||||
operator unsigned int() const { return m_value; }
|
||||
operator long int() const { return m_value; }
|
||||
operator unsigned long int() const { return m_value; }
|
||||
operator short int() const { return m_value; }
|
||||
operator unsigned short int() const { return m_value; }
|
||||
operator int() const { return (int)m_value; }
|
||||
operator unsigned int() const { return (unsigned int)m_value; }
|
||||
operator long int() const { return (long int)m_value; }
|
||||
operator unsigned long int() const { return (unsigned long)m_value; }
|
||||
operator short int() const { return (short int)m_value; }
|
||||
operator unsigned short int() const { return (unsigned short int)m_value; }
|
||||
|
||||
// We need this operator for the "*p" part of expressions like "for (
|
||||
// const_iterator p = begin() + nStart; *p; ++p )". In this case,
|
||||
|
Loading…
Reference in New Issue
Block a user