sfx2: unused returns

Change-Id: I0ab14e51d10cf67c956624710d1f82c69662e586
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176784
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-19 17:20:49 +01:00
parent 836d73a651
commit f6a539cb5f
2 changed files with 5 additions and 10 deletions

View file

@ -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 */

View file

@ -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 */