diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 10:44:13 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 10:46:01 +0100 |
commit | c0a802b59e1edddeb0b621e15137f5058299efd7 (patch) | |
tree | 48203cffcd51d1d2747bb2384608907d73b69670 /sd | |
parent | 1c4025babd7037a3292aa530c7d45ab8d6ef6dcb (diff) |
Audit and correct misc. clears -> disposeAndClears.
Anything that used to be 'delete'd should be disposeAndCleared()
in the new world.
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationDialog.cxx | 24 | ||||
-rw-r--r-- | sd/source/ui/dlg/animobjs.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/brkdlg.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/headerfooterdlg.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/framework/factories/FullScreenPane.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 5 |
6 files changed, 20 insertions, 19 deletions
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index ce65a000ebcd..b493eca77b42 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -159,7 +159,7 @@ void PresetPropertyBox::setValue( const Any& rValue, const OUString& rPresetId ) PresetPropertyBox::~PresetPropertyBox() { - mpControl.clear(); + mpControl.disposeAndClear(); } Any PresetPropertyBox::getValue() @@ -219,7 +219,7 @@ ColorPropertyBox::ColorPropertyBox( sal_Int32 nControlType, vcl::Window* pParent ColorPropertyBox::~ColorPropertyBox() { - mpControl.clear(); + mpControl.disposeAndClear(); } void ColorPropertyBox::setValue( const Any& rValue, const OUString& ) @@ -303,7 +303,7 @@ void FontPropertyBox::setValue( const Any& rValue, const OUString& ) FontPropertyBox::~FontPropertyBox() { - mpControl.clear(); + mpControl.disposeAndClear(); } Any FontPropertyBox::getValue() @@ -357,7 +357,7 @@ DropdownMenuBox::~DropdownMenuBox() void DropdownMenuBox::dispose() { SetSubEdit(nullptr); - mpDropdownButton.clear(); + mpDropdownButton.disposeAndClear(); delete mpMenu; mpSubControl.disposeAndClear(); Edit::dispose(); @@ -437,7 +437,7 @@ CharHeightPropertyBox::CharHeightPropertyBox( sal_Int32 nControlType, vcl::Windo CharHeightPropertyBox::~CharHeightPropertyBox() { - mpControl.clear(); + mpControl.disposeAndClear(); } IMPL_LINK( CharHeightPropertyBox, implMenuSelectHdl, MenuButton*, pPb ) @@ -528,7 +528,7 @@ TransparencyPropertyBox::TransparencyPropertyBox( sal_Int32 nControlType, vcl::W TransparencyPropertyBox::~TransparencyPropertyBox() { - mpControl.clear(); + mpControl.disposeAndClear(); } void TransparencyPropertyBox::updateMenu() @@ -626,7 +626,7 @@ RotationPropertyBox::RotationPropertyBox( sal_Int32 nControlType, vcl::Window* p RotationPropertyBox::~RotationPropertyBox() { - mpControl.clear(); + mpControl.disposeAndClear(); } void RotationPropertyBox::updateMenu() @@ -751,7 +751,7 @@ ScalePropertyBox::ScalePropertyBox( sal_Int32 nControlType, vcl::Window* pParent ScalePropertyBox::~ScalePropertyBox() { - mpControl.clear(); + mpControl.disposeAndClear(); } void ScalePropertyBox::updateMenu() @@ -911,7 +911,7 @@ FontStylePropertyBox::FontStylePropertyBox( sal_Int32 nControlType, vcl::Window* FontStylePropertyBox::~FontStylePropertyBox() { - mpControl.clear(); + mpControl.disposeAndClear(); } void FontStylePropertyBox::update() @@ -2212,9 +2212,9 @@ CustomAnimationDialog::~CustomAnimationDialog() void CustomAnimationDialog::dispose() { - mpEffectTabPage.clear(); - mpDurationTabPage.clear(); - mpTextAnimTabPage.clear(); + mpEffectTabPage.disposeAndClear(); + mpDurationTabPage.disposeAndClear(); + mpTextAnimTabPage.disposeAndClear(); delete mpSet; delete mpResultSet; diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx index c7bba27e3eab..e6fb2655a1b4 100644 --- a/sd/source/ui/dlg/animobjs.cxx +++ b/sd/source/ui/dlg/animobjs.cxx @@ -224,7 +224,7 @@ void AnimationWindow::dispose() // delete the clones delete pMyDoc; - m_pCtlDisplay.clear(); + m_pCtlDisplay.disposeAndClear(); m_pBtnFirst.clear(); m_pBtnReverse.clear(); m_pBtnStop.clear(); diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx index bd6cad52decf..fa6b4e1e17eb 100644 --- a/sd/source/ui/dlg/brkdlg.cxx +++ b/sd/source/ui/dlg/brkdlg.cxx @@ -72,6 +72,8 @@ BreakDlg::~BreakDlg() void BreakDlg::dispose() { + mpProgress.disposeAndClear(); + pProgrInfo.disposeAndClear(); m_pFiObjInfo.clear(); m_pFiActInfo.clear(); m_pFiInsInfo.clear(); diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx index f2ea08902841..f82e75fc230e 100644 --- a/sd/source/ui/dlg/headerfooterdlg.cxx +++ b/sd/source/ui/dlg/headerfooterdlg.cxx @@ -246,8 +246,8 @@ HeaderFooterDialog::~HeaderFooterDialog() void HeaderFooterDialog::dispose() { - mpSlideTabPage.clear(); - mpNotesHandoutsTabPage.clear(); + mpSlideTabPage.disposeAndClear(); + mpNotesHandoutsTabPage.disposeAndClear(); mpTabCtrl.clear(); maPBApplyToAll.clear(); maPBApply.clear(); diff --git a/sd/source/ui/framework/factories/FullScreenPane.cxx b/sd/source/ui/framework/factories/FullScreenPane.cxx index ba1a0131734c..7ef05ccc4f5b 100644 --- a/sd/source/ui/framework/factories/FullScreenPane.cxx +++ b/sd/source/ui/framework/factories/FullScreenPane.cxx @@ -103,7 +103,7 @@ FullScreenPane::~FullScreenPane (void) throw() void SAL_CALL FullScreenPane::disposing (void) { - mpWindow.clear(); + mpWindow.disposeAndClear(); if (mpWorkWindow.get() != NULL) { diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 15b2bb3eecbb..3f87111ca978 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -705,13 +705,12 @@ void SAL_CALL SlideshowImpl::disposing() } if( mpTimeButton ) - { mpTimeButton->Hide(); - mpTimeButton.clear(); - } + mpTimeButton.disposeAndClear(); if( mpShowWindow ) mpShowWindow->Hide(); + mpShowWindow.disposeAndClear(); if ( mpViewShell ) { |