mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
fix leaking as_compound() calls
This commit is contained in:
committed by
Thomas Krijnen
parent
c9eb345491
commit
15a31074e8
@@ -254,7 +254,7 @@ IfcGeom::ConversionResultShape* IfcGeom::Representation::BRep::as_compound(bool
|
||||
builder.Add(compound, moved_shape);
|
||||
}
|
||||
|
||||
return new ifcopenshell::geometry::OpenCascadeShape(compound);
|
||||
return new ifcopenshell::geometry::OpenCascadeShape(std::move(compound));
|
||||
#else
|
||||
throw std::runtime_error("Not available without Open Cascade");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user