diff options
Diffstat (limited to 'sd/source/ui/func/fulink.cxx')
-rw-r--r-- | sd/source/ui/func/fulink.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/func/fulink.cxx b/sd/source/ui/func/fulink.cxx index 8ef97da0a508..a978cf466515 100644 --- a/sd/source/ui/func/fulink.cxx +++ b/sd/source/ui/func/fulink.cxx @@ -29,6 +29,7 @@ #include "drawdoc.hxx" #include "ViewShell.hxx" #include "app.hrc" +#include <boost/scoped_ptr.hpp> class SfxRequest; @@ -60,12 +61,11 @@ void FuLink::DoExecute( SfxRequest& ) sfx2::LinkManager* pLinkManager = mpDoc->GetLinkManager(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); - SfxAbstractLinksDialog* pDlg = pFact->CreateLinksDialog( mpViewShell->GetActiveWindow(), pLinkManager ); + boost::scoped_ptr<SfxAbstractLinksDialog> pDlg(pFact->CreateLinksDialog( mpViewShell->GetActiveWindow(), pLinkManager )); if ( pDlg ) { pDlg->Execute(); mpViewShell->GetViewFrame()->GetBindings().Invalidate( SID_MANAGE_LINKS ); - delete pDlg; } } |