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:
parent
991a7b44da
commit
905fa8f49d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue