sfx2: Pass DevelopmentToolDockingWindow's SfxBindings param by ref

Change-Id: Ie6476b0bbe99612ce544b884b51c222a3b57e25f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208377
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn
2026-07-23 15:39:23 +02:00
parent 4c1d5aebc0
commit 552ea86469
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ private:
void updateSelection();
public:
DevelopmentToolDockingWindow(SfxBindings* pBindings, SfxChildWindow* pChildWindow,
DevelopmentToolDockingWindow(SfxBindings& rBindings, SfxChildWindow* pChildWindow,
vcl::Window* pParent);
virtual ~DevelopmentToolDockingWindow() override;
@@ -21,7 +21,7 @@ DevelopmentToolChildWindow::DevelopmentToolChildWindow(vcl::Window* pParentWindo
: SfxChildWindow(pParentWindow, nId)
{
VclPtr<DevelopmentToolDockingWindow> pWin
= VclPtr<DevelopmentToolDockingWindow>::Create(&rBindings, this, pParentWindow);
= VclPtr<DevelopmentToolDockingWindow>::Create(rBindings, this, pParentWindow);
SetWindow(pWin);
SetAlignment(SfxChildAlignment::BOTTOM);
pWin->SetSizePixel(Size(0, 290));
@@ -26,17 +26,17 @@
using namespace css;
DevelopmentToolDockingWindow::DevelopmentToolDockingWindow(SfxBindings* pInputBindings,
DevelopmentToolDockingWindow::DevelopmentToolDockingWindow(SfxBindings& rBindings,
SfxChildWindow* pChildWindow,
vcl::Window* pParent)
: SfxDockingWindow(pInputBindings, pChildWindow, pParent, u"DevelopmentTool"_ustr,
: SfxDockingWindow(&rBindings, pChildWindow, pParent, u"DevelopmentTool"_ustr,
u"sfx/ui/developmenttool.ui"_ustr)
, mpObjectInspectorWidgets(new ObjectInspectorWidgets(m_xBuilder))
, mpDocumentModelTreeView(m_xBuilder->weld_tree_view(u"leftside_treeview_id"_ustr))
, mpDomToolbar(m_xBuilder->weld_toolbar(u"dom_toolbar"_ustr))
, maDocumentModelTreeHandler(
mpDocumentModelTreeView,
pInputBindings->GetDispatcher()->GetFrame()->GetObjectShell()->GetBaseModel())
rBindings.GetDispatcher()->GetFrame()->GetObjectShell()->GetBaseModel())
, maObjectInspectorTreeHandler(mpObjectInspectorWidgets)
{
mpDocumentModelTreeView->connect_selection_changed(
@@ -44,11 +44,11 @@ DevelopmentToolDockingWindow::DevelopmentToolDockingWindow(SfxBindings* pInputBi
mpDomToolbar->connect_clicked(
LINK(this, DevelopmentToolDockingWindow, DomToolbarButtonClicked));
auto* pViewFrame = pInputBindings->GetDispatcher()->GetFrame();
auto* pViewFrame = rBindings.GetDispatcher()->GetFrame();
uno::Reference<frame::XController> xController = pViewFrame->GetFrame().GetController();
mxRoot = pInputBindings->GetDispatcher()->GetFrame()->GetObjectShell()->GetBaseModel();
mxRoot = rBindings.GetDispatcher()->GetFrame()->GetObjectShell()->GetBaseModel();
maDocumentModelTreeHandler.inspectDocument();
mxSelectionListener.set(new SelectionChangeHandler(xController, this));