sw/source/core/docnode/ndnum.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 05007e451ca960a8f91c93839725bed5125dbb07 Author: Kashif <[email protected]> AuthorDate: Wed Feb 18 23:36:18 2026 +0530 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Tue Mar 3 20:12:09 2026 +0100 tdf#158237 sw: use contains() instead of find() != end() Change associative container's find() and end() comparisons to the simpler C++20 contains() method to improve readability. Change-Id: Ia35944a323dfeb640d3de335380a3002152a993a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199637 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <[email protected]> Reviewed-by: Simon Chenery <[email protected]> diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx index dcdc6ffbb9f5..cf62116a277e 100644 --- a/sw/source/core/docnode/ndnum.cxx +++ b/sw/source/core/docnode/ndnum.cxx @@ -100,7 +100,7 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) if (!pTextNd || !pTextNd->IsOutlineStateChanged()) return; - bool bFound = m_aOutlineNodes.find(pTextNd) != m_aOutlineNodes.end(); + bool bFound = m_aOutlineNodes.contains(pTextNd); if (pTextNd->IsOutline()) {
