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

@ -50,6 +50,8 @@ public:
// no custom background initially to avoid confusing people
m_drawCustomBg = false;
}
MyHtmlWindow(const MyHtmlWindow&) = delete;
MyHtmlWindow& operator=(const MyHtmlWindow&) = delete;
virtual wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType WXUNUSED(type),
const wxString& WXUNUSED(url),
@ -71,7 +73,6 @@ private:
bool m_drawCustomBg;
wxDECLARE_EVENT_TABLE();
wxDECLARE_NO_COPY_CLASS(MyHtmlWindow);
};
// Define a new frame type: this is going to be our main frame