sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ffbc2198363c346c4bf14bb63c3dc99a54dd1f8e Author: Nam Bui <ndbu...@gmail.com> AuthorDate: Wed Mar 26 17:33:07 2025 -0400 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Mar 27 17:35:34 2025 +0100 tdf#158237 C++20 contains() instead of find(), end() Use C++20 contains() and std::binary_search() instead of find() and end() in sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx 4083: find() != ends() to contains() Change-Id: Ia6db458aaca3922278e7e49dee57d83c83b339a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183357 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx index fb2217f67d22..cc67b8003caa 100644 --- a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx +++ b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx @@ -4083,7 +4083,7 @@ void DomainMapper_Impl::prepareHeaderFooterContent(rtl::Reference<SwXPageStyle> bool DomainMapper_Impl::SeenHeaderFooter(PagePartType const partType, PageType const pageType) const { - return m_HeaderFooterSeen.find({partType, pageType}) != m_HeaderFooterSeen.end(); + return m_HeaderFooterSeen.contains({ partType, pageType }); } /** Checks if the header and footer content on the text appended stack is empty.