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

Change-Id: Id1a128b0c0f8e1e7ec13545240fe6c07637e9ffb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185262
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
AlexTMFN
2025-05-14 14:03:03 +02:00
committed by Julien Nabet
parent 41d3574263
commit a347c47ee9
@@ -737,7 +737,7 @@ void OConnection::impl_checkTableQueryNames_nothrow()
for ( auto const & queryName : aQueryNames )
{
if ( aSortedTableNames.find( queryName ) != aSortedTableNames.end() )
if ( aSortedTableNames.contains(queryName) )
{
OUString sConflictWarning( DBA_RES( RID_STR_CONFLICTING_NAMES ) );
m_aWarnings.appendWarning( sConflictWarning, "01SB0", *this );