Replace wxDECLARE_NO_COPY_CLASS with deleted functions in samples
Use standard C++11 way of making classes non-copyable instead of wx-specific macro. Closes #24150.
This commit is contained in:
parent
33de6dce6f
commit
a059061eb7
20 changed files with 78 additions and 56 deletions
|
|
@ -60,6 +60,8 @@ class MyHtmlListBox : public wxHtmlListBox
|
|||
public:
|
||||
MyHtmlListBox() { }
|
||||
MyHtmlListBox(wxWindow *parent, bool multi = false);
|
||||
MyHtmlListBox(const MyHtmlListBox&) = delete;
|
||||
MyHtmlListBox& operator=(const MyHtmlListBox&) = delete;
|
||||
|
||||
void SetChangeSelFg(bool change) { m_change = change; }
|
||||
void UpdateFirstItem();
|
||||
|
|
@ -90,7 +92,6 @@ public:
|
|||
wxTextFile m_file;
|
||||
#endif
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(MyHtmlListBox);
|
||||
wxDECLARE_DYNAMIC_CLASS(MyHtmlListBox);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue