sw/source/uibase/utlui/content.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 0a6e131e12874f04aa114a2939fc68fda6857831 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Aug 17 11:57:59 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Aug 17 15:35:00 2025 +0200 cid#1664819 Unchecked return value and cid#1664820 Unchecked return value Change-Id: I55e6ecdb6a16b5b8b461ac542874eca0f421de07 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189826 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index a541d0207477..2b2ce94ab195 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -7121,9 +7121,7 @@ void SwContentTree::BringCommentToAttention(sal_uInt16 nCommentId) m_xTreeView->expand_row(*xIter); UpdateContentFunctionsToolbar(); - int nCount = m_xTreeView->iter_n_children(*xIter); - m_xTreeView->iter_children(*xIter); - for (int i = 0; i < nCount; ++i) + for (bool bChild = m_xTreeView->iter_children(*xIter); bChild; bChild = m_xTreeView->iter_next(*xIter)) { if (const SwPostItContent* pPostIt = weld::fromId<SwPostItContent*>(m_xTreeView->get_id(*xIter))) { @@ -7134,7 +7132,6 @@ void SwContentTree::BringCommentToAttention(sal_uInt16 nCommentId) break; } } - m_xTreeView->iter_next(*xIter); } break; }