diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-20 14:59:22 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 13:01:47 +0100 |
commit | 58a43332b3a86db3756e6ad18e31189969c85364 (patch) | |
tree | ab71067a374e6b88d5792a4a22ee58d32ffad74b /sw/source/ui/config | |
parent | e0eecf8ad57aa207d1db7fc63d9ad8f8d54866e4 (diff) |
wrap more stuff in VclPtr
Change-Id: I2f0d8a4fe426d8ee1ac55a05ae8dd0b44f9aab2b
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index ee6a85be58e1..236fa93e81e4 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -636,9 +636,7 @@ void SwStdFontTabPage::dispose() { delete pFontList; if (bDeletePrinter) - { - delete pPrt; - } + pPrt.disposeAndClear(); pLabelFT.clear(); pStandardBox.clear(); pStandardHeightLB.clear(); @@ -833,7 +831,7 @@ void SwStdFontTabPage::Reset( const SfxItemSet* rSet) if (bDeletePrinter) { - delete pPrt; + pPrt.disposeAndClear(); } if(SfxItemState::SET == rSet->GetItemState(FN_PARAM_PRINTER, false, &pItem)) |