summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-16 01:13:39 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-16 01:15:50 +0100
commite8748f158249d7be906f6c6cf2411df45dd07a24 (patch)
tree50bbe1fcbe503356dfe7391a190ee7d584033862
parent59ad7b04f7f49a06e1476472d5a3fddc1d241685 (diff)
It seems wrong to Destroy() these widgets as I think the parent will do it.
-rw-r--r--src/wx/language_tag_widget.cc7
-rw-r--r--src/wx/language_tag_widget.h1
-rw-r--r--src/wx/region_subtag_widget.cc7
-rw-r--r--src/wx/region_subtag_widget.h1
4 files changed, 0 insertions, 16 deletions
diff --git a/src/wx/language_tag_widget.cc b/src/wx/language_tag_widget.cc
index d14c43f0c..1a6f3fabc 100644
--- a/src/wx/language_tag_widget.cc
+++ b/src/wx/language_tag_widget.cc
@@ -57,13 +57,6 @@ LanguageTagWidget::LanguageTagWidget (wxWindow* parent, wxString tooltip, option
}
-LanguageTagWidget::~LanguageTagWidget ()
-{
- _language->Destroy ();
- _edit->Destroy ();
-}
-
-
void
LanguageTagWidget::edit ()
{
diff --git a/src/wx/language_tag_widget.h b/src/wx/language_tag_widget.h
index 346b8bc75..1b97d03c7 100644
--- a/src/wx/language_tag_widget.h
+++ b/src/wx/language_tag_widget.h
@@ -37,7 +37,6 @@ 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;
diff --git a/src/wx/region_subtag_widget.cc b/src/wx/region_subtag_widget.cc
index 54c6d9d43..1132410dd 100644
--- a/src/wx/region_subtag_widget.cc
+++ b/src/wx/region_subtag_widget.cc
@@ -58,13 +58,6 @@ RegionSubtagWidget::RegionSubtagWidget(wxWindow* parent, wxString tooltip, optio
}
-RegionSubtagWidget::~RegionSubtagWidget()
-{
- _region->Destroy();
- _edit->Destroy();
-}
-
-
void
RegionSubtagWidget::edit()
{
diff --git a/src/wx/region_subtag_widget.h b/src/wx/region_subtag_widget.h
index 1fa5efe4e..725f8652c 100644
--- a/src/wx/region_subtag_widget.h
+++ b/src/wx/region_subtag_widget.h
@@ -40,7 +40,6 @@ class RegionSubtagWidget
{
public:
RegionSubtagWidget(wxWindow* parent, wxString tooltip, boost::optional<dcp::LanguageTag::RegionSubtag> tag, boost::optional<wxString> size_to_fit = boost::none);
- ~RegionSubtagWidget();
RegionSubtagWidget(RegionSubtagWidget const&) = delete;
RegionSubtagWidget& operator=(RegionSubtagWidget const&) = delete;