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); } } }