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:
@@ -604,7 +604,7 @@ private:
|
||||
|
||||
bool m_bLinkWasClicked;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxHtmlCellEvent);
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN_DEF_COPY(wxHtmlCellEvent);
|
||||
};
|
||||
|
||||
|
||||
@@ -631,7 +631,7 @@ public:
|
||||
private:
|
||||
wxHtmlLinkInfo m_linkInfo;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxHtmlLinkEvent);
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN_DEF_COPY(wxHtmlLinkEvent);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user