sw/source/uibase/shells/drwbassh.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 9e33ac4035442b48bcd2a58f42a279fe9855b6ce Author: Caolán McNamara <caol...@redhat.com> Date: Tue Nov 1 13:23:07 2016 +0000 Resolves: tdf#103556 the implicit convert to bare pointer hurts us here Change-Id: I2d91cf9b11027f76dbcbb5432f4cad71c56f53f2 diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx index 424b6c6..82569db 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<AbstractSvxCaptionDialog> 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<AbstractSvxTransformTabDialog> 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());
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits