diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx index 2e842f4d5f32..010d74fcc626 100644 --- a/sw/inc/swabstdlg.hxx +++ b/sw/inc/swabstdlg.hxx @@ -597,11 +597,10 @@ public: CreateIndexMarkFloatDlg(SfxBindings* pBindings, SfxChildWindow* pChild, weld::Window* pParent, SfxChildWinInfo& rInfo) = 0; - virtual VclPtr CreateAuthMarkFloatDlg( - SfxBindings* pBindings, - SfxChildWindow* pChild, - weld::Window *pParent, - SfxChildWinInfo* pInfo) = 0; + virtual VclPtr + CreateAuthMarkFloatDlg(SfxBindings* pBindings, SfxChildWindow* pChild, weld::Window* pParent, + SfxChildWinInfo& rInfo) + = 0; virtual VclPtr CreateIndexMarkModalDlg( weld::Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark) = 0; diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx index b6a0b4a27e61..191cc94efd3c 100644 --- a/sw/source/ui/dialog/swdlgfact.cxx +++ b/sw/source/ui/dialog/swdlgfact.cxx @@ -1098,13 +1098,12 @@ public: }; } -VclPtr SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg( - SfxBindings* pBindings, - SfxChildWindow* pChild, - weld::Window *pParent, - SfxChildWinInfo* pInfo) +VclPtr +SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg(SfxBindings* pBindings, SfxChildWindow* pChild, + weld::Window* pParent, SfxChildWinInfo& rInfo) { - return VclPtr::Create(pBindings, pChild, pParent, pInfo, true/*bNew*/); + return VclPtr::Create(pBindings, pChild, pParent, &rInfo, + true /*bNew*/); } namespace diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx index ad27d31fc2ad..653eaed75abe 100644 --- a/sw/source/ui/dialog/swdlgfact.hxx +++ b/sw/source/ui/dialog/swdlgfact.hxx @@ -182,11 +182,10 @@ public: SfxChildWindow* pChild, weld::Window* pParent, SfxChildWinInfo& rInfo) override; - virtual VclPtr CreateAuthMarkFloatDlg( - SfxBindings* pBindings, - SfxChildWindow* pChild, - weld::Window *pParent, - SfxChildWinInfo* pInfo) override; + virtual VclPtr CreateAuthMarkFloatDlg(SfxBindings* pBindings, + SfxChildWindow* pChild, + weld::Window* pParent, + SfxChildWinInfo& rInfo) override; virtual VclPtr CreateIndexMarkModalDlg( weld::Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ) override; diff --git a/sw/source/uibase/index/idxmrk.cxx b/sw/source/uibase/index/idxmrk.cxx index c7d32277d2f9..65eabe3dbef3 100644 --- a/sw/source/uibase/index/idxmrk.cxx +++ b/sw/source/uibase/index/idxmrk.cxx @@ -53,7 +53,7 @@ SwInsertAuthMarkWrapper::SwInsertAuthMarkWrapper(vcl::Window* pParentWindow, sal { SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create(); m_xAbstDlg - = pFact->CreateAuthMarkFloatDlg(pBindings, this, pParentWindow->GetFrameWeld(), &rInfo); + = pFact->CreateAuthMarkFloatDlg(pBindings, this, pParentWindow->GetFrameWeld(), rInfo); SetController(m_xAbstDlg->GetController()); }