Revert default-member changes, only keep and use wxHAS_MEMBER_DEFAULT
This commit is contained in:
@@ -38,7 +38,10 @@ public:
|
||||
wxAnimation();
|
||||
explicit wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY);
|
||||
|
||||
wxDECLARE_DEFAULT_COPY_CLASS(wxAnimation);
|
||||
#ifdef wxHAS_MEMBER_DEFAULT
|
||||
wxAnimation(const wxAnimation&) = default;
|
||||
wxAnimation& operator=(const wxAnimation&) = default;
|
||||
#endif
|
||||
|
||||
bool IsOk() const;
|
||||
bool IsCompatibleWith(wxClassInfo* ci) const;
|
||||
|
@@ -3039,22 +3039,6 @@ typedef const void* WXWidget;
|
||||
#define DECLARE_NO_ASSIGN_CLASS(classname) \
|
||||
wxDECLARE_NO_ASSIGN_CLASS(classname);
|
||||
|
||||
/* --------------------------------------------------------------------------- */
|
||||
/* macros to define a class with default copy constructor and/or assignment operator */
|
||||
/* --------------------------------------------------------------------------- */
|
||||
|
||||
#ifdef wxHAS_MEMBER_DEFAULT
|
||||
#define wxDECLARE_DEFAULT_COPY_CTOR(classname) \
|
||||
classname(const classname&) = default
|
||||
|
||||
#define wxDECLARE_DEFAULT_COPY_CLASS(classname) \
|
||||
wxDECLARE_DEFAULT_COPY_CTOR(classname); \
|
||||
classname& operator=(const classname&) = default
|
||||
#else
|
||||
#define wxDECLARE_DEFAULT_COPY_CTOR(classname)
|
||||
#define wxDECLARE_DEFAULT_COPY_CLASS(classname)
|
||||
#endif
|
||||
|
||||
/* --------------------------------------------------------------------------- */
|
||||
/* If a manifest is being automatically generated, add common controls 6 to it */
|
||||
/* --------------------------------------------------------------------------- */
|
||||
|
@@ -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); }
|
||||
|
Reference in New Issue
Block a user