diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-03 17:15:20 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-08 06:40:25 +0000 |
commit | 80c874dc87ad3018df6e6f0edb7cca174f75db37 (patch) | |
tree | fa119fc641f9708332a0d931533684bab07c9e87 /sd/source | |
parent | 7fb70ff650ce3a1e4a39bd1b936f511d6be8986c (diff) |
remove "object is disposed" warning in OBroadcastHelperVar::removeListener
doesn't add anything of value.
Change-Id: Ie2dea7c43570640284771c992d0072ab61de425e
Reviewed-on: https://gerrit.libreoffice.org/25871
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/dlg/LayerTabBar.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/inc/LayerTabBar.hxx | 1 | ||||
-rw-r--r-- | sd/source/ui/inc/TabControl.hxx | 1 | ||||
-rw-r--r-- | sd/source/ui/sidebar/LayoutMenu.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 1 | ||||
-rw-r--r-- | sd/source/ui/view/tabcontr.cxx | 8 |
6 files changed, 20 insertions, 0 deletions
diff --git a/sd/source/ui/dlg/LayerTabBar.cxx b/sd/source/ui/dlg/LayerTabBar.cxx index caf7ce513c8c..8f8425b88a6a 100644 --- a/sd/source/ui/dlg/LayerTabBar.cxx +++ b/sd/source/ui/dlg/LayerTabBar.cxx @@ -57,6 +57,13 @@ LayerTabBar::LayerTabBar(DrawViewShell* pViewSh, vcl::Window* pParent) LayerTabBar::~LayerTabBar() { + disposeOnce(); +} + +void LayerTabBar::dispose() +{ + DropTargetHelper::dispose(); + TabBar::dispose(); } void LayerTabBar::Select() diff --git a/sd/source/ui/inc/LayerTabBar.hxx b/sd/source/ui/inc/LayerTabBar.hxx index 35dbd1833871..ac2fab525ce0 100644 --- a/sd/source/ui/inc/LayerTabBar.hxx +++ b/sd/source/ui/inc/LayerTabBar.hxx @@ -38,6 +38,7 @@ public: LayerTabBar ( DrawViewShell* pDrViewSh, vcl::Window* pParent); + virtual void dispose() override; virtual ~LayerTabBar(); /** Inform all listeners of this control that the current layer has been diff --git a/sd/source/ui/inc/TabControl.hxx b/sd/source/ui/inc/TabControl.hxx index 6054b441f3e5..53e762252b36 100644 --- a/sd/source/ui/inc/TabControl.hxx +++ b/sd/source/ui/inc/TabControl.hxx @@ -40,6 +40,7 @@ class TabControl sal_uInt16 RrePageID; public: TabControl (DrawViewShell* pDrViewSh, vcl::Window* pParent); + virtual void dispose() override; virtual ~TabControl(); /** Inform all listeners of this control that the current page has been diff --git a/sd/source/ui/sidebar/LayoutMenu.cxx b/sd/source/ui/sidebar/LayoutMenu.cxx index 539cee5c083a..f9ba5cf6caba 100644 --- a/sd/source/ui/sidebar/LayoutMenu.cxx +++ b/sd/source/ui/sidebar/LayoutMenu.cxx @@ -200,6 +200,8 @@ void LayoutMenu::dispose() { SAL_INFO("sd.ui", "destroying LayoutMenu at " << this); Dispose(); + DragSourceHelper::dispose(); + DropTargetHelper::dispose(); ValueSet::dispose(); } diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index 97c4a5d92c85..2a40cf3e3f38 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -102,6 +102,7 @@ void Window::dispose() pWindowUpdater->UnregisterWindow (this); } mpShareWin.clear(); + DropTargetHelper::dispose(); vcl::Window::dispose(); } diff --git a/sd/source/ui/view/tabcontr.cxx b/sd/source/ui/view/tabcontr.cxx index f258d59828e6..34627e7faf92 100644 --- a/sd/source/ui/view/tabcontr.cxx +++ b/sd/source/ui/view/tabcontr.cxx @@ -78,6 +78,14 @@ TabControl::TabControl(DrawViewShell* pViewSh, vcl::Window* pParent) : TabControl::~TabControl() { + disposeOnce(); +} + +void TabControl::dispose() +{ + DragSourceHelper::dispose(); + DropTargetHelper::dispose(); + TabBar::dispose(); } void TabControl::Select() |