From 9e33ac4035442b48bcd2a58f42a279fe9855b6ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 1 Nov 2016 13:23:07 +0000 Subject: [PATCH] Resolves: tdf#103556 the implicit convert to bare pointer hurts us here Change-Id: I2d91cf9b11027f76dbcbb5432f4cad71c56f53f2 --- sw/source/uibase/shells/drwbassh.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx index 424b6c67e5f3..82569db0269c 100644 --- a/sw/source/uibase/shells/drwbassh.cxx +++ b/sw/source/uibase/shells/drwbassh.cxx @@ -199,18 +199,18 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq) if (bCaption) { SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); - AbstractSvxCaptionDialog* pCaptionDlg = + VclPtr pCaptionDlg = pFact->CreateCaptionDialog( nullptr, pSdrView, nAllowedAnchors ); - pCaptionDlg->SetValidateFramePosLink( LINK(this, SwDrawBaseShell, ValidatePosition) ); pDlg.disposeAndReset(pCaptionDlg); + pCaptionDlg->SetValidateFramePosLink( LINK(this, SwDrawBaseShell, ValidatePosition) ); } else { SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); - AbstractSvxTransformTabDialog* pTransform = + VclPtr pTransform = pFact->CreateSvxTransformTabDialog( nullptr, nullptr, pSdrView, nAllowedAnchors ); - pTransform->SetValidateFramePosLink( LINK(this, SwDrawBaseShell, ValidatePosition) ); pDlg.disposeAndReset(pTransform); + pTransform->SetValidateFramePosLink( LINK(this, SwDrawBaseShell, ValidatePosition) ); } SfxItemSet aNewAttr(pSdrView->GetGeoAttrFromMarked());