summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-10 10:44:13 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 10:46:01 +0100
commitc0a802b59e1edddeb0b621e15137f5058299efd7 (patch)
tree48203cffcd51d1d2747bb2384608907d73b69670 /starmath
parent1c4025babd7037a3292aa530c7d45ab8d6ef6dcb (diff)
Audit and correct misc. clears -> disposeAndClears.
Anything that used to be 'delete'd should be disposeAndCleared() in the new world.
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/ElementsDockingWindow.cxx2
-rw-r--r--starmath/source/edit.cxx6
-rw-r--r--starmath/source/toolbox.cxx5
3 files changed, 6 insertions, 7 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 0b472e2efae9..0170bd744d0c 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -676,7 +676,7 @@ SmElementsDockingWindow::~SmElementsDockingWindow ()
void SmElementsDockingWindow::dispose()
{
- mpElementsControl.clear();
+ mpElementsControl.disposeAndClear();
mpElementListBox.clear();
SfxDockingWindow::dispose();
}
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index dfd1595bdf1b..18f8696db25e 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -156,9 +156,9 @@ void SmEditWindow::dispose()
pEditView = NULL;
}
- pHScrollBar.clear();
- pVScrollBar.clear();
- pScrollBox.clear();
+ pHScrollBar.disposeAndClear();
+ pVScrollBar.disposeAndClear();
+ pScrollBox.disposeAndClear();
vcl::Window::dispose();
}
diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx
index 0b514fdf2c06..7d14a1e0db2c 100644
--- a/starmath/source/toolbox.cxx
+++ b/starmath/source/toolbox.cxx
@@ -146,9 +146,8 @@ void SmToolBoxWindow::dispose()
{
int i;
for (i = 0; i < NUM_TBX_CATEGORIES; ++i)
- {
- vToolBoxCategories[i].clear();
- }
+ vToolBoxCategories[i].disposeAndClear();
+
pToolBoxCmd = 0;
for (i = 0; i < NUM_TBX_CATEGORIES + 1; ++i)
{