Permalink
Browse files

Resolves: tdf#103556 the implicit convert to bare pointer hurts us here

Change-Id: I2d91cf9b11027f76dbcbb5432f4cad71c56f53f2
  • Loading branch information...
1 parent 9bdec08 commit 9e33ac4035442b48bcd2a58f42a279fe9855b6ce Caolán McNamara committed Nov 1, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 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());

0 comments on commit 9e33ac4

Please sign in to comment.