tdf#158237 chart2: use c++20 contains() instead of find() and end()

Change-Id: I4b02c5b4dca22bce5653dad1d179ea2a1b249a8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176798
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Simon Chenery <simon_chenery@yahoo.com>
This commit is contained in:
Bogdan Buzea 2024-11-19 20:49:00 +01:00 committed by Ilmari Lauhakangas
parent 991a7b44da
commit 905fa8f49d

View file

@ -103,7 +103,7 @@ Sequence< OUString > SAL_CALL NameContainer::getElementNames()
sal_Bool SAL_CALL NameContainer::hasByName( const OUString& rName )
{
return ( m_aMap.find( rName ) != m_aMap.end() );
return m_aMap.contains( rName );
}
// XElementAccess