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:
Blake-Madden 2023-12-20 11:23:59 -05:00 committed by Vadim Zeitlin
parent 33de6dce6f
commit a059061eb7
20 changed files with 78 additions and 56 deletions

View file

@ -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);
};