sw/source/uibase/utlui/content.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 7a3ecdd0ab66d516bd8934a7cd32654b85fef312 Author: Andrea Gelmini <andrea.gelm...@gelma.net> AuthorDate: Sat Dec 10 19:51:02 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Dec 10 21:04:59 2022 +0000 Fix typo in code Change-Id: Ic0a54ef30bd8e4350b6a47ddf9f67ae608a7e122 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143938 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 1449c0fd89fa..e8eb722c1338 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -2298,14 +2298,14 @@ bool SwContentTree::RequestingChildren(const weld::TreeIter& rParent) sEntry = m_sSpace; OUString sId(weld::toId(pCnt)); - auto lamba = [nLevel, this](const std::unique_ptr<weld::TreeIter>& entry) + auto lambda = [nLevel, this](const std::unique_ptr<weld::TreeIter>& entry) { return lcl_IsLowerOutlineContent(*entry, *m_xTreeView, nLevel); }; // if there is a preceding outline node candidate with a lower outline level use // that as a parent, otherwise use the root node - auto aFind = std::find_if(aParentCandidates.rbegin(), aParentCandidates.rend(), lamba); + auto aFind = std::find_if(aParentCandidates.rbegin(), aParentCandidates.rend(), lambda); if (aFind != aParentCandidates.rend()) insert(aFind->get(), sEntry, sId, false, xChild.get()); else @@ -2315,7 +2315,7 @@ bool SwContentTree::RequestingChildren(const weld::TreeIter& rParent) // remove any parent candidates equal to or higher than this node aParentCandidates.erase(std::remove_if(aParentCandidates.begin(), aParentCandidates.end(), - std::not_fn(lamba)), aParentCandidates.end()); + std::not_fn(lambda)), aParentCandidates.end()); // add this node as a parent candidate for any following nodes at a higher outline level aParentCandidates.emplace_back(m_xTreeView->make_iterator(xChild.get()));