diff options
author | Jim Raykowski <raykowj@gmail.com> | 2023-12-06 12:44:47 -0900 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-12-07 14:02:03 +0100 |
commit | c58efbfce1ca80942a731881cf82ea0367edc579 (patch) | |
tree | 269ad87d90ebb2fd981d78f42551afa5a5923d52 /sw | |
parent | b17d051ad56ab706d15a3b696266be1ac1df2e5d (diff) |
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 <serval2412@yahoo.fr>
Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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())); |