diff options
author | Zainab Abbasi <101zabbasi@gmail.com> | 2024-06-20 22:02:07 -0700 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-06-21 16:42:11 +0200 |
commit | b00183ebb29d19cb59145a3d240554f8e3573a0b (patch) | |
tree | b4301c3195e02fa150b6865ab462f3233bc441e8 | |
parent | bbd32b39eae24e99d135ed5c48586db8c9b0fb23 (diff) |
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>
-rw-r--r-- | dbaccess/source/core/api/RowSet.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx index 56bdcb3435be..609ebc36ce95 100644 --- a/dbaccess/source/core/api/RowSet.cxx +++ b/dbaccess/source/core/api/RowSet.cxx @@ -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++); } |