From 89698f647b2ed6cdcbd31e0351e2fa0c005be3ac Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 25 Jun 2024 13:13:21 -0500 Subject: [PATCH] Switch back to emplace_back --- src/Mod/Part/App/TopoShapeExpansion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/App/TopoShapeExpansion.cpp b/src/Mod/Part/App/TopoShapeExpansion.cpp index bc21a4a2e9..da60bf6a74 100644 --- a/src/Mod/Part/App/TopoShapeExpansion.cpp +++ b/src/Mod/Part/App/TopoShapeExpansion.cpp @@ -3079,7 +3079,7 @@ TopoShape& TopoShape::makeElementWires(const std::vector& shapes, std::vector wires; for (int i = 1; i <= hWires->Length(); i++) { auto wire = hWires->Value(i); - wires.push_back(TopoShape(Tag,Hasher,wire)); + wires.emplace_back(Tag,Hasher,wire); wires.back().mapSubElement(shapes, op); } return makeElementCompound(wires, "", SingleShapeCompoundCreationPolicy::returnShape);