mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 00:43:39 +08:00
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:
committed by
Vadim Zeitlin
parent
33de6dce6f
commit
a059061eb7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user