summaryrefslogtreecommitdiff
path: root/xmloff/source/draw
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-11-19 21:51:04 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-11-20 07:39:56 +0100
commit39aff36a842ae4df59c283dbba7f2ebfcf5d66fd (patch)
tree469fd9465a423797b13f50285ac0cd89091d981f /xmloff/source/draw
parent15ef2909b88ef97b84615837e8bdb448481d61c1 (diff)
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>
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r--xmloff/source/draw/shapeexport.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index e2035da6cc4c..cbb027829713 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -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)
{