diff options
Diffstat (limited to 'sd/source/ui/func/fuparagr.cxx')
-rw-r--r-- | sd/source/ui/func/fuparagr.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sd/source/ui/func/fuparagr.cxx b/sd/source/ui/func/fuparagr.cxx index de0dc0e35933..08db2fb6dc3d 100644 --- a/sd/source/ui/func/fuparagr.cxx +++ b/sd/source/ui/func/fuparagr.cxx @@ -34,6 +34,7 @@ #include "drawdoc.hxx" #include "sdabstdlg.hxx" #include "sdattr.hrc" +#include <boost/scoped_ptr.hpp> namespace sd { @@ -90,7 +91,7 @@ void FuParagraph::DoExecute( SfxRequest& rReq ) } SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); - SfxAbstractTabDialog* pDlg = pFact ? pFact->CreateSdParagraphTabDlg(NULL, &aNewAttr ) : 0; + boost::scoped_ptr<SfxAbstractTabDialog> pDlg(pFact ? pFact->CreateSdParagraphTabDlg(NULL, &aNewAttr ) : 0); if (!pDlg) return; @@ -107,12 +108,8 @@ void FuParagraph::DoExecute( SfxRequest& rReq ) break; default: - { - delete pDlg; - } return; // Cancel } - delete( pDlg ); } mpView->SetAttributes( *pArgs ); |