Revert default-member changes, only keep and use wxHAS_MEMBER_DEFAULT

This commit is contained in:
Maarten Bent
2020-04-13 19:44:04 +02:00
parent 1448b210b8
commit 9039340da9
4 changed files with 7 additions and 34 deletions

View File

@@ -267,7 +267,9 @@ public:
wxUniCharRef& operator=(const wxUniCharRef& c)
{ if (&c != this) *this = c.UniChar(); return *this; }
wxDECLARE_DEFAULT_COPY_CTOR(wxUniCharRef);
#ifdef wxHAS_MEMBER_DEFAULT
wxUniCharRef(const wxUniCharRef&) = default;
#endif
#define wxUNICHAR_REF_DEFINE_OPERATOR_EQUAL(type) \
wxUniCharRef& operator=(type c) { return *this = wxUniChar(c); }