- wxUniCharRef& operator=(char c) { return *this = wxUniChar(c); }
- wxUniCharRef& operator=(unsigned char c) { return *this = wxUniChar(c); }
-#if wxWCHAR_T_IS_REAL_TYPE
- wxUniCharRef& operator=(wchar_t c) { return *this = wxUniChar(c); }
-#endif
- wxUniCharRef& operator=(int c) { return *this = wxUniChar(c); }
- wxUniCharRef& operator=(unsigned int c) { return *this = wxUniChar(c); }
- wxUniCharRef& operator=(short int c) { return *this = wxUniChar(c); }
- wxUniCharRef& operator=(unsigned short int c) { return *this = wxUniChar(c); }
- wxUniCharRef& operator=(long int c) { return *this = wxUniChar(c); }
- wxUniCharRef& operator=(unsigned long int c) { return *this = wxUniChar(c); }
+#define wxUNICHAR_REF_DEFINE_OPERATOR_EQUAL(type) \
+ wxUniCharRef& operator=(type c) { return *this = wxUniChar(c); }
+ wxDO_FOR_CHAR_INT_TYPES(wxUNICHAR_REF_DEFINE_OPERATOR_EQUAL)
+#undef wxUNICHAR_REF_DEFINE_OPERATOR_EQUAL