mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 08:36:52 +00:00
fix leaking as_compound() calls
This commit is contained in:
committed by
Thomas Krijnen
parent
c9eb345491
commit
15a31074e8
@@ -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_; }
|
||||
|
||||
Reference in New Issue
Block a user