diff --git a/svx/source/form/fmexpl.cxx b/svx/source/form/fmexpl.cxx index 13ee2b15b254..c8178ec4c773 100644 --- a/svx/source/form/fmexpl.cxx +++ b/svx/source/form/fmexpl.cxx @@ -394,10 +394,10 @@ void FmControlData::ModelReplaced(const Reference< XFormComponent >& _rxNew) namespace svxform { - NavigatorFrame::NavigatorFrame( SfxBindings* _pBindings, SfxChildWindow* _pMgr, - vcl::Window* _pParent ) - : SfxDockingWindow(_pBindings, _pMgr, _pParent, u"FormNavigator"_ustr, u"svx/ui/formnavigator.ui"_ustr) - , SfxControllerItem( SID_FM_FMEXPLORER_CONTROL, *_pBindings ) + NavigatorFrame::NavigatorFrame(SfxBindings& rBindings, SfxChildWindow* _pMgr, + vcl::Window* _pParent) + : SfxDockingWindow(&rBindings, _pMgr, _pParent, u"FormNavigator"_ustr, u"svx/ui/formnavigator.ui"_ustr) + , SfxControllerItem(SID_FM_FMEXPLORER_CONTROL, rBindings) , m_xNavigatorTree(new NavigatorTree(m_xBuilder->weld_tree_view(u"treeview"_ustr))) { SetHelpId( HID_FORM_NAVIGATOR_WIN ); @@ -478,7 +478,7 @@ namespace svxform SfxBindings& rBindings, SfxChildWinInfo& rInfo) : SfxChildWindow(_pParent, _nId) { - SetWindow(VclPtr::Create(&rBindings, this, _pParent)); + SetWindow(VclPtr::Create(rBindings, this, _pParent)); static_cast(GetWindow())->Initialize(rInfo); } } diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx index 6845234fcf52..ee14986ae20a 100644 --- a/svx/source/inc/fmexpl.hxx +++ b/svx/source/inc/fmexpl.hxx @@ -521,8 +521,7 @@ namespace svxform using SfxDockingWindow::StateChanged; public: - NavigatorFrame( SfxBindings *pBindings, SfxChildWindow *pMgr, - vcl::Window* pParent ); + NavigatorFrame(SfxBindings& rBindings, SfxChildWindow* pMgr, vcl::Window* pParent); virtual ~NavigatorFrame() override; virtual void dispose() override;