Use macros to define default copy constructor and assignment operator

This commit is contained in:
Maarten Bent
2020-04-13 15:05:29 +02:00
parent 287c1b1d11
commit 1448b210b8
5 changed files with 35 additions and 12 deletions

View File

@@ -38,10 +38,7 @@ public:
wxAnimation();
explicit wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY);
#ifdef wxHAS_MEMBER_DEFAULT
wxAnimation(const wxAnimation&) wxMEMBER_DEFAULT;
wxAnimation& operator=(const wxAnimation&) wxMEMBER_DEFAULT;
#endif
wxDECLARE_DEFAULT_COPY_CLASS(wxAnimation);
bool IsOk() const;
bool IsCompatibleWith(wxClassInfo* ci) const;