Avoid -Wdeprecated-copy for many event classes from clang 13

Add new macros wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN_DEF_COPY() and
wxDECLARE_NO_ASSIGN_DEF_COPY() and use them instead of
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN() and wxDECLARE_NO_ASSIGN_CLASS()
respectively to ensure that we declare a (default, if possible) copy
ctor in the classes declaring an assignment operator to avoid clang
warnings about not doing it.
This commit is contained in:
Vadim Zeitlin 2021-12-15 02:13:43 +01:00
parent e2d13c2d94
commit 6f8bc1018b
27 changed files with 77 additions and 43 deletions

View file

@ -39,7 +39,7 @@ public:
private:
wxDateTime m_date;
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxDateEvent);
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN_DEF_COPY(wxDateEvent);
};
// ----------------------------------------------------------------------------