connectivity/source/parse/PColumn.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit e91a6e9b9f5559a9541586041711b6bb430d6b96 Author: Simon Chenery <[email protected]> AuthorDate: Fri Feb 13 21:48:18 2026 +0100 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Thu Feb 19 18:55:29 2026 +0100 tdf#158237 Use C++20 contains() in PColumn.cxx Change-Id: Ic4853b8baa691eaa3027605bd6e9278fbd767fef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199362 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <[email protected]> diff --git a/connectivity/source/parse/PColumn.cxx b/connectivity/source/parse/PColumn.cxx index 29763c2dd438..54840e1f7747 100644 --- a/connectivity/source/parse/PColumn.cxx +++ b/connectivity/source/parse/PColumn.cxx @@ -131,11 +131,11 @@ rtl::Reference<OParseColumn> OParseColumn::createColumnForResultSet( const Refer OUString sLabel = _rxResMetaData->getColumnLabel( _nColumnPos ); // retrieve the name of the column // check for duplicate entries - if(_rColumns.find(sLabel) != _rColumns.end()) + if(_rColumns.contains(sLabel)) { OUString sAlias(sLabel); sal_Int32 searchIndex=1; - while(_rColumns.find(sAlias) != _rColumns.end()) + while(_rColumns.contains(sAlias)) { sAlias = sLabel + OUString::number(searchIndex++); }
