diff --git a/include/sfx2/devtools/DocumentModelTreeHandler.hxx b/include/sfx2/devtools/DocumentModelTreeHandler.hxx index 5b752b172b4e..03f5ed274aa4 100644 --- a/include/sfx2/devtools/DocumentModelTreeHandler.hxx +++ b/include/sfx2/devtools/DocumentModelTreeHandler.hxx @@ -28,13 +28,7 @@ private: public: DocumentModelTreeHandler(std::unique_ptr& pDocumentModelTree, - css::uno::Reference const& xDocument) - : mpDocumentModelTree(pDocumentModelTree) - , mxDocument(xDocument) - { - mpDocumentModelTree->connect_expanding( - LINK(this, DocumentModelTreeHandler, ExpandingHandler)); - } + css::uno::Reference const& xDocument); DECL_LINK(ExpandingHandler, const weld::TreeIter&, bool); diff --git a/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx b/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx index aa6e353e6549..69769cc261d9 100644 --- a/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx +++ b/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx @@ -26,13 +26,7 @@ private: public: ObjectInspectorTreeHandler(std::unique_ptr& pObjectInspectorTree, - std::unique_ptr& pClassNameLabel) - : mpObjectInspectorTree(pObjectInspectorTree) - , mpClassNameLabel(pClassNameLabel) - { - mpObjectInspectorTree->connect_expanding( - LINK(this, ObjectInspectorTreeHandler, ExpandingHandler)); - } + std::unique_ptr& pClassNameLabel); DECL_LINK(ExpandingHandler, const weld::TreeIter&, bool); diff --git a/sfx2/source/devtools/DocumentModelTreeHandler.cxx b/sfx2/source/devtools/DocumentModelTreeHandler.cxx index e29ce03ad47a..a170e3551bc5 100644 --- a/sfx2/source/devtools/DocumentModelTreeHandler.cxx +++ b/sfx2/source/devtools/DocumentModelTreeHandler.cxx @@ -566,6 +566,15 @@ public: } // end anonymous namespace +DocumentModelTreeHandler::DocumentModelTreeHandler( + std::unique_ptr& pDocumentModelTree, + css::uno::Reference const& xDocument) + : mpDocumentModelTree(pDocumentModelTree) + , mxDocument(xDocument) +{ + mpDocumentModelTree->connect_expanding(LINK(this, DocumentModelTreeHandler, ExpandingHandler)); +} + uno::Reference DocumentModelTreeHandler::getObjectByID(OUString const& rID) { uno::Reference xObject; diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx index d69f8130f82b..98e92fb46cbf 100644 --- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx +++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx @@ -428,6 +428,16 @@ public: } // end anonymous namespace +ObjectInspectorTreeHandler::ObjectInspectorTreeHandler( + std::unique_ptr& pObjectInspectorTree, + std::unique_ptr& pClassNameLabel) + : mpObjectInspectorTree(pObjectInspectorTree) + , mpClassNameLabel(pClassNameLabel) +{ + mpObjectInspectorTree->connect_expanding( + LINK(this, ObjectInspectorTreeHandler, ExpandingHandler)); +} + IMPL_LINK(ObjectInspectorTreeHandler, ExpandingHandler, weld::TreeIter const&, rParent, bool) { OUString sID = mpObjectInspectorTree->get_id(rParent);