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 <mike.kaganski@collabora.com>
This commit is contained in:
bruh
2025-01-17 23:55:24 +05:30
committed by Mike Kaganski
parent a207e40dbf
commit f9dc1f61b6

View File

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