sw/source/uibase/utlui/content.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit c58efbfce1ca80942a731881cf82ea0367edc579 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Wed Dec 6 12:44:47 2023 -0900 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Thu Dec 7 14:02:03 2023 +0100 use std::erase_if instead of std::remove_if + std::erase Change-Id: Ib505c89d224c9d8418ff3b1138f26d3d6e576120 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160406 Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Jenkins diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 29ab1b964c26..d7e0a61d0b33 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -2306,8 +2306,7 @@ bool SwContentTree::RequestingChildren(const weld::TreeIter& rParent) m_xTreeView->set_image(*xChild, bHidden ? RID_BMP_HIDE : RID_BMP_NO_HIDE); // remove any parent candidates equal to or higher than this node - aParentCandidates.erase(std::remove_if(aParentCandidates.begin(), aParentCandidates.end(), - std::not_fn(lambda)), aParentCandidates.end()); + std::erase_if(aParentCandidates, std::not_fn(lambda)); // add this node as a parent candidate for any following nodes at a higher region level aParentCandidates.emplace_back(m_xTreeView->make_iterator(xChild.get()));