diff options
author | Sohrab Kazak <sohrab.kazak@gmail.com> | 2024-08-26 12:49:26 -0700 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-08-27 19:13:57 +0200 |
commit | 84662e0454eddd928dfdf3cd8f7fe675db6a1fcf (patch) | |
tree | f77781b5a228d4ad573ad0598474e559a80aac01 | |
parent | fcc1b0d637807830c684741aad885986bc5b86db (diff) |
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.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
-rw-r--r-- | sw/source/writerfilter/dmapper/PropertyMap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |