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
|
|
@ -25,6 +25,8 @@ public:
|
|||
m_frame(frame)
|
||||
{
|
||||
}
|
||||
MenuEventLogger(const MenuEventLogger&) = delete;
|
||||
MenuEventLogger& operator=(const MenuEventLogger&) = delete;
|
||||
|
||||
protected:
|
||||
void LogMenuOpenClose(wxMenuEvent& event, const char *action)
|
||||
|
|
@ -52,8 +54,6 @@ protected:
|
|||
|
||||
const wxString m_label;
|
||||
wxFrame* const m_frame;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(MenuEventLogger);
|
||||
};
|
||||
|
||||
class MyCanvas : public wxScrolledWindow,
|
||||
|
|
@ -155,6 +155,8 @@ private:
|
|||
{
|
||||
public:
|
||||
EventHandler(unsigned numChild) : m_numChild(numChild) { }
|
||||
EventHandler(const EventHandler&) = delete;
|
||||
EventHandler &operator=(const EventHandler&) = delete;
|
||||
|
||||
private:
|
||||
void OnRefresh(wxCommandEvent& event)
|
||||
|
|
@ -166,8 +168,6 @@ private:
|
|||
const unsigned m_numChild;
|
||||
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(EventHandler);
|
||||
};
|
||||
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue