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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user