From bb949ec65adf95f4a2c7dd5ee7e97b9daaaf3d3f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Feb 2021 10:40:12 +0100 Subject: C++11 tidying. --- src/wx/content_widget.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/wx/content_widget.h') diff --git a/src/wx/content_widget.h b/src/wx/content_widget.h index 1a9c85dde..2a2bc9cf7 100644 --- a/src/wx/content_widget.h +++ b/src/wx/content_widget.h @@ -43,7 +43,7 @@ * @param V Data type of state as used by the view. */ template -class ContentWidget : public boost::noncopyable +class ContentWidget { public: /** @param parent Parent window. @@ -84,6 +84,9 @@ public: _button->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&ContentWidget::button_clicked, this)); } + ContentWidget (ContentWidget const&) = delete; + ContentWidget& operator= (ContentWidget const&) = delete; + /** @return the widget that we are wrapping */ T* wrapped () const { -- cgit v1.2.3