diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-26 11:00:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-29 19:24:09 +0200 |
commit | c83615f8c61b14bd842faffabc4c2965ca78571a (patch) | |
tree | 0b3a7d04568dfefc3aab1b6a9fe27422f69059e5 /basctl | |
parent | 66438a0ad5a3c6d2792f4c6c04c2d2405b5679cb (diff) |
no need to check IsDisposed here
the call site does that
Change-Id: I8373eb4a6b87e96b211dd6bacea051d43b7ae8b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116178
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/ObjectCatalog.cxx | 3 | ||||
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/basctl/source/basicide/ObjectCatalog.cxx b/basctl/source/basicide/ObjectCatalog.cxx index 5ad7913ae139..89b3f4e2b824 100644 --- a/basctl/source/basicide/ObjectCatalog.cxx +++ b/basctl/source/basicide/ObjectCatalog.cxx @@ -54,8 +54,7 @@ ObjectCatalog::~ObjectCatalog() { disposeOnce(); } void ObjectCatalog::dispose() { - if (!IsDisposed()) - GetParent()->GetSystemWindow()->GetTaskPaneList()->RemoveWindow(this); + GetParent()->GetSystemWindow()->GetTaskPaneList()->RemoveWindow(this); m_xTitle.reset(); m_xTree.reset(); DockingWindow::dispose(); diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 7d06e117d072..3335424583a0 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1679,8 +1679,7 @@ void WatchWindow::dispose() m_xRemoveWatchButton.reset(); m_xTitleArea.reset(); m_xTreeListBox.reset(); - if (!IsDisposed()) - GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); + GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); DockingWindow::dispose(); } @@ -1836,8 +1835,7 @@ StackWindow::~StackWindow() void StackWindow::dispose() { - if (!IsDisposed()) - GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); + GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); m_xTitle.reset(); m_xTreeListBox.reset(); DockingWindow::dispose(); |