sfx2/source/devtools/DocumentModelTreeHandler.cxx   |    3 +--
 sfx2/source/devtools/ObjectInspectorTreeHandler.cxx |   12 ++++--------
 2 files changed, 5 insertions(+), 10 deletions(-)

New commits:
commit f6a539cb5fdd487aa90a1ba551e034b4fdecbf2f
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Tue Nov 19 17:20:49 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Nov 19 21:13:17 2024 +0100

    sfx2: unused returns
    
    Change-Id: I0ab14e51d10cf67c956624710d1f82c69662e586
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176784
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sfx2/source/devtools/DocumentModelTreeHandler.cxx 
b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
index a850b78e7ac4..f113ce9f6482 100644
--- a/sfx2/source/devtools/DocumentModelTreeHandler.cxx
+++ b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
@@ -99,13 +99,12 @@ void lclAppendToParentEntry(const 
std::unique_ptr<weld::TreeView>& rTree,
 }
 
 // append a root entry to a input TreeView
-OUString lclAppend(const std::unique_ptr<weld::TreeView>& rTree, 
DocumentModelTreeEntry* pEntry)
+void lclAppend(const std::unique_ptr<weld::TreeView>& rTree, 
DocumentModelTreeEntry* pEntry)
 {
     OUString sId(weld::toId(pEntry));
     OUString const& rString = pEntry->getString();
     rTree->insert(nullptr, -1, &rString, &sId, nullptr, nullptr, 
pEntry->shouldShowExpander(),
                   nullptr);
-    return sId;
 }
 
 /** Entry that represents a object, which implements a XNameAccess */
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx 
b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index 1457fe1a10d0..fd9f879ab446 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -349,8 +349,8 @@ public:
 };
 
 // appends the node to the root of the tree view
-OUString lclAppendNode(const std::unique_ptr<weld::TreeView>& pTree,
-                       ObjectInspectorNodeInterface* pEntry)
+void lclAppendNode(const std::unique_ptr<weld::TreeView>& pTree,
+                   ObjectInspectorNodeInterface* pEntry)
 {
     OUString sName = pEntry->getObjectName();
     OUString sId(weld::toId(pEntry));
@@ -363,13 +363,11 @@ OUString lclAppendNode(const 
std::unique_ptr<weld::TreeView>& pTree,
     {
         pTree->set_text(*pCurrent, rPair.second, rPair.first);
     }
-
-    return sId;
 }
 
 // appends the node to the parent
-OUString lclAppendNodeToParent(const std::unique_ptr<weld::TreeView>& pTree,
-                               const weld::TreeIter* pParent, 
ObjectInspectorNodeInterface* pEntry)
+void lclAppendNodeToParent(const std::unique_ptr<weld::TreeView>& pTree,
+                           const weld::TreeIter* pParent, 
ObjectInspectorNodeInterface* pEntry)
 {
     OUString sName = pEntry->getObjectName();
     OUString sId(weld::toId(pEntry));
@@ -382,8 +380,6 @@ OUString lclAppendNodeToParent(const 
std::unique_ptr<weld::TreeView>& pTree,
     {
         pTree->set_text(*pCurrent, rPair.second, rPair.first);
     }
-
-    return sId;
 }
 
 /** Node that represent just a simple string with no children or columns */

Reply via email to