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 /extensions/source/bibliography | |
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 'extensions/source/bibliography')
-rw-r--r-- | extensions/source/bibliography/bibbeam.cxx | 11 | ||||
-rw-r--r-- | extensions/source/bibliography/bibcont.cxx | 4 |
2 files changed, 4 insertions, 11 deletions
diff --git a/extensions/source/bibliography/bibbeam.cxx b/extensions/source/bibliography/bibbeam.cxx index 0174189c2cb4..87abe11e61f2 100644 --- a/extensions/source/bibliography/bibbeam.cxx +++ b/extensions/source/bibliography/bibbeam.cxx @@ -217,17 +217,10 @@ namespace bib if ( pToolBar ) { pDatMan->SetToolbar(0); + pToolBar.disposeAndClear(); } - if( pGridWin ) - { - BibGridwin* pDel = pGridWin; - pGridWin.clear(); - pDel->disposeGridWin(); - delete pDel; - } - pToolBar.clear(); - pGridWin.clear(); + pGridWin.disposeAndClear(); BibSplitWindow::dispose(); } diff --git a/extensions/source/bibliography/bibcont.cxx b/extensions/source/bibliography/bibcont.cxx index b6e65e1665d8..34af38efa5b0 100644 --- a/extensions/source/bibliography/bibcont.cxx +++ b/extensions/source/bibliography/bibcont.cxx @@ -181,7 +181,7 @@ void BibBookContainer::createTopFrame( BibShortCutHandler* pWin ) if(pTopWin) { RemoveItem(TOP_WINDOW); - pTopWin.clear(); + pTopWin.disposeAndClear(); } pTopWin=new BibWindowContainer(this,pWin); pTopWin->Show(); @@ -198,7 +198,7 @@ void BibBookContainer::createBottomFrame( BibShortCutHandler* pWin ) if(pBottomWin) { RemoveItem(BOTTOM_WINDOW); - pBottomWin.clear(); + pBottomWin.disposeAndClear(); } pBottomWin=new BibWindowContainer(this,pWin); |