summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorJohann <jlorber@linagora.com>2024-12-17 13:16:39 +0100
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-12-27 16:20:47 +0100
commitbf7ac07c04cb06316b745eb9716787b16c1314dd (patch)
treeb2d27cb3fe0375ffeedb95a45264325cf1803a94 /sdext
parentd2d9af865880d5da94e86f40d18686433ff821df (diff)
tdf#158237: Use C++20 contains() instead of find() and end()
Change-Id: I0528229042aa62d3d99e8dbaad68a86d41cf369a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178659 Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/sax/saxattrlist.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/sax/saxattrlist.cxx b/sdext/source/pdfimport/sax/saxattrlist.cxx
index d9ae07b12317..e529e7eafabf 100644
--- a/sdext/source/pdfimport/sax/saxattrlist.cxx
+++ b/sdext/source/pdfimport/sax/saxattrlist.cxx
@@ -53,7 +53,7 @@ OUString SAL_CALL SaxAttrList::getTypeByIndex( sal_Int16 i_nIndex)
OUString SAL_CALL SaxAttrList::getTypeByName( const OUString& i_rName )
{
- return (m_aIndexMap.find( i_rName ) != m_aIndexMap.end()) ? CDATA : OUString();
+ return (m_aIndexMap.contains( i_rName )) ? CDATA : OUString();
}
OUString SAL_CALL SaxAttrList::getValueByIndex( sal_Int16 i_nIndex )