From f9dc1f61b6ccf1281b14a55d13cd4430316c255f Mon Sep 17 00:00:00 2001 From: bruh Date: Fri, 17 Jan 2025 23:55:24 +0530 Subject: [PATCH] tdf#158337 Use C++20 std::erase instead of std::remove followed by erase Change-Id: Ic6781ae74c2945608c35b92ad8ba92e789582973 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180421 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- connectivity/source/drivers/file/FResultSet.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index bb9d8a94b725..85064f8a4e16 100644 --- a/connectivity/source/drivers/file/FResultSet.cxx +++ b/connectivity/source/drivers/file/FResultSet.cxx @@ -1326,8 +1326,7 @@ void OResultSet::OpenImpl() #endif } - m_pFileSet->erase(std::remove(m_pFileSet->begin(),m_pFileSet->end(),0) - ,m_pFileSet->end()); + std::erase(*m_pFileSet, 0); } } }