tdf#158237 Use C++20 contains() instead of find() and end()
Change-Id: I9ebe5e8c966a21b99a5229a4418738e4178716a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169312 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
committed by
Ilmari Lauhakangas
parent
bbd32b39ea
commit
b00183ebb2
@@ -1833,11 +1833,11 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi
|
||||
// retrieve the name of the column
|
||||
OUString sName = xMetaData->getColumnName(i + 1);
|
||||
// check for duplicate entries
|
||||
if(aColumnMap.find(sName) != aColumnMap.end())
|
||||
if(aColumnMap.contains(sName))
|
||||
{
|
||||
OUString sAlias(sName);
|
||||
sal_Int32 searchIndex=1;
|
||||
while(aColumnMap.find(sAlias) != aColumnMap.end())
|
||||
while(aColumnMap.contains(sAlias))
|
||||
{
|
||||
sAlias = sName + OUString::number(searchIndex++);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user