Permalink
Browse files
Resolves: tdf#103556 the implicit convert to bare pointer hurts us here
Change-Id: I2d91cf9b11027f76dbcbb5432f4cad71c56f53f2
- Loading branch information...
Showing
with
4 additions
and
4 deletions.
-
+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