From 905fa8f49d98d7ce986333b781f0462be6dfa49e Mon Sep 17 00:00:00 2001 From: Bogdan Buzea Date: Tue, 19 Nov 2024 20:49:00 +0100 Subject: [PATCH] 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 Tested-by: Jenkins Reviewed-by: Simon Chenery --- chart2/source/tools/NameContainer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart2/source/tools/NameContainer.cxx b/chart2/source/tools/NameContainer.cxx index da21b751a6df..3ca97e75b302 100644 --- a/chart2/source/tools/NameContainer.cxx +++ b/chart2/source/tools/NameContainer.cxx @@ -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