c++20: use std::erase(_if) instead of std::remove(_if)+erase (xmloff)
Change-Id: Idb65092e79a9afc6195bce0dbd5b3861d83a01be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159711 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
parent
15ef2909b8
commit
39aff36a84
@ -1046,9 +1046,7 @@ void FixZOrder(uno::Reference<drawing::XShapes> const& xShapes,
|
||||
layers[nLayer].nMax = i;
|
||||
}
|
||||
}
|
||||
layers.erase(std::remove_if(layers.begin(), layers.end(),
|
||||
[](Layer const& rLayer) { return rLayer.shapes.empty(); }),
|
||||
layers.end());
|
||||
std::erase_if(layers, [](Layer const& rLayer) { return rLayer.shapes.empty(); });
|
||||
bool isSorted(true);
|
||||
for (size_t i = 1; i < layers.size(); ++i)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user