fix leaking as_compound() calls

This commit is contained in:
shmoodyyy
2025-08-04 20:03:36 +02:00
committed by Thomas Krijnen
parent c9eb345491
commit 15a31074e8
3 changed files with 10 additions and 5 deletions
@@ -46,6 +46,8 @@ namespace ifcopenshell {
public:
OpenCascadeShape(const TopoDS_Shape& shape)
: shape_(shape) {}
OpenCascadeShape(TopoDS_Shape&& shape)
: shape_(std::move(shape)) {}
const TopoDS_Shape& shape() const { return shape_; }
operator const TopoDS_Shape& () { return shape_; }