Kaydet (Commit) 9e33ac40 authored tarafından Caolán McNamara's avatar Caolán McNamara

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

Change-Id: I2d91cf9b11027f76dbcbb5432f4cad71c56f53f2
üst 9bdec083
...@@ -199,18 +199,18 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq) ...@@ -199,18 +199,18 @@ void SwDrawBaseShell::Execute(SfxRequest &rReq)
if (bCaption) if (bCaption)
{ {
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
AbstractSvxCaptionDialog* pCaptionDlg = VclPtr<AbstractSvxCaptionDialog> pCaptionDlg =
pFact->CreateCaptionDialog( nullptr, pSdrView, nAllowedAnchors ); pFact->CreateCaptionDialog( nullptr, pSdrView, nAllowedAnchors );
pCaptionDlg->SetValidateFramePosLink( LINK(this, SwDrawBaseShell, ValidatePosition) );
pDlg.disposeAndReset(pCaptionDlg); pDlg.disposeAndReset(pCaptionDlg);
pCaptionDlg->SetValidateFramePosLink( LINK(this, SwDrawBaseShell, ValidatePosition) );
} }
else else
{ {
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
AbstractSvxTransformTabDialog* pTransform = VclPtr<AbstractSvxTransformTabDialog> pTransform =
pFact->CreateSvxTransformTabDialog( nullptr, nullptr, pSdrView, nAllowedAnchors ); pFact->CreateSvxTransformTabDialog( nullptr, nullptr, pSdrView, nAllowedAnchors );
pTransform->SetValidateFramePosLink( LINK(this, SwDrawBaseShell, ValidatePosition) );
pDlg.disposeAndReset(pTransform); pDlg.disposeAndReset(pTransform);
pTransform->SetValidateFramePosLink( LINK(this, SwDrawBaseShell, ValidatePosition) );
} }
SfxItemSet aNewAttr(pSdrView->GetGeoAttrFromMarked()); SfxItemSet aNewAttr(pSdrView->GetGeoAttrFromMarked());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment