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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user