cid#1459028 various checked_return warnings
and cid#1459027, cid#1459026, cid#1459025, cid#1459024, cid#1459021, cid#1459018 Change-Id: If92e7665fcf947c5daf3094b9003e85c5c51f48f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89763 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
5a78e93aec
commit
85eda0537b
6 changed files with 7 additions and 7 deletions
|
@ -61,7 +61,7 @@ void FolderTree::FillTreeEntry(const weld::TreeIter& rEntry)
|
|||
while (m_xTreeView->iter_has_child(rEntry))
|
||||
{
|
||||
std::unique_ptr<weld::TreeIter> xChild(m_xTreeView->make_iterator(&rEntry));
|
||||
m_xTreeView->iter_children(*xChild);
|
||||
(void)m_xTreeView->iter_children(*xChild);
|
||||
m_xTreeView->remove(*xChild);
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ void FolderTree::FillTreeEntry( const OUString & rUrl, const ::std::vector< std:
|
|||
while (m_xTreeView->iter_has_child(*xParent))
|
||||
{
|
||||
std::unique_ptr<weld::TreeIter> xChild(m_xTreeView->make_iterator(xParent.get()));
|
||||
m_xTreeView->iter_children(*xChild);
|
||||
(void)m_xTreeView->iter_children(*xChild);
|
||||
m_xTreeView->remove(*xChild);
|
||||
}
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@ void ScXMLSourceDlg::DefaultElementSelected(weld::TreeIter& rEntry)
|
|||
// Only an element with no child elements (leaf element) can be linked.
|
||||
bool bHasChild = false;
|
||||
std::unique_ptr<weld::TreeIter> xChild(mxLbTree->make_iterator(&rEntry));
|
||||
mxLbTree->iter_children(*xChild);
|
||||
(void)mxLbTree->iter_children(*xChild);
|
||||
do
|
||||
{
|
||||
ScOrcusXMLTreeParam::EntryData* pUserData = ScOrcusXMLTreeParam::getUserData(*mxLbTree, *xChild);
|
||||
|
|
|
@ -870,7 +870,7 @@ IMPL_LINK(SdPageObjsTLV, RequestingChildrenHdl, const weld::TreeIter&, rFileEntr
|
|||
if (!xPageEntry)
|
||||
{
|
||||
xPageEntry = m_xTreeView->make_iterator(&rFileEntry);
|
||||
m_xTreeView->iter_children(*xPageEntry);
|
||||
(void)m_xTreeView->iter_children(*xPageEntry);
|
||||
}
|
||||
else
|
||||
(void)m_xTreeView->iter_next_sibling(*xPageEntry);
|
||||
|
|
|
@ -894,7 +894,7 @@ IMPL_LINK_NOARG(SwEditRegionDlg, ChangeDismissHdl, weld::Button&, void)
|
|||
if (m_xTree->iter_has_child(*xEntry))
|
||||
{
|
||||
std::unique_ptr<weld::TreeIter> xChild(m_xTree->make_iterator(xEntry.get()));
|
||||
m_xTree->iter_children(*xChild);
|
||||
(void)m_xTree->iter_children(*xChild);
|
||||
std::unique_ptr<weld::TreeIter> xParent(m_xTree->make_iterator(xEntry.get()));
|
||||
if (!m_xTree->iter_parent(*xParent))
|
||||
xParent.reset();
|
||||
|
|
|
@ -416,7 +416,7 @@ void SwDBTreeList::ShowColumns(bool bShowCol)
|
|||
while (m_xTreeView->iter_has_child(*xIter))
|
||||
{
|
||||
m_xTreeView->copy_iterator(*xIter, *xChild);
|
||||
m_xTreeView->iter_children(*xChild);
|
||||
(void)m_xTreeView->iter_children(*xChild);
|
||||
m_xTreeView->remove(*xChild);
|
||||
}
|
||||
} while (m_xTreeView->iter_next(*xIter));
|
||||
|
|
|
@ -295,7 +295,7 @@ void CertificateViewerCertPathTP::ActivatePage()
|
|||
}
|
||||
else
|
||||
{
|
||||
mxCertPathLB->iter_children(*xParent);
|
||||
(void)mxCertPathLB->iter_children(*xParent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue