It seems wrong to Destroy() these widgets as I think the parent will do it.
[dcpomatic.git] / src / wx / language_tag_widget.h
index c2fd63d926f20c53d54130d3889b4b42f29f15d9..1b97d03c7343cceddef2981c478b9be8aa1c4487 100644 (file)
 
 
 #include <dcp/language_tag.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
-#include <boost/noncopyable.hpp>
+LIBDCP_ENABLE_WARNINGS
 #include <boost/signals2.hpp>
 
 
@@ -31,11 +33,13 @@ class wxStaticText;
 class wxWindow;
 
 
-class LanguageTagWidget : public boost::noncopyable
+class LanguageTagWidget
 {
 public:
        LanguageTagWidget (wxWindow* parent, wxString tooltip, boost::optional<dcp::LanguageTag> tag, boost::optional<wxString> size_to_fit = boost::none);
-       ~LanguageTagWidget ();
+
+       LanguageTagWidget (LanguageTagWidget const&) = delete;
+       LanguageTagWidget& operator= (LanguageTagWidget const&) = delete;
 
        wxSizer* sizer () const {
                return _sizer;