sw/source/writerfilter/dmapper/PropertyMap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 84662e0454eddd928dfdf3cd8f7fe675db6a1fcf Author: Sohrab Kazak <sohrab.ka...@gmail.com> AuthorDate: Mon Aug 26 12:49:26 2024 -0700 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Tue Aug 27 19:13:57 2024 +0200 tdf#158237 Using C++20 contains instead of find() and end() Change-Id: I1f0253474fa026c1bc48caaa41af037d4fdf43c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172446 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/sw/source/writerfilter/dmapper/PropertyMap.cxx b/sw/source/writerfilter/dmapper/PropertyMap.cxx index 62b872b0608f..c3087e72d6b5 100644 --- a/sw/source/writerfilter/dmapper/PropertyMap.cxx +++ b/sw/source/writerfilter/dmapper/PropertyMap.cxx @@ -293,7 +293,7 @@ std::optional< PropertyMap::Property > PropertyMap::getProperty( PropertyIds eId bool PropertyMap::isSet( PropertyIds eId) const { - return m_vMap.find( eId ) != m_vMap.end(); + return m_vMap.contains( eId ); } bool PropertyMap::isDocDefault( PropertyIds eId ) const