diff --git a/code/AssetLib/IFC/IFCBoolean.cpp b/code/AssetLib/IFC/IFCBoolean.cpp index 9942490ea..6baaf0687 100644 --- a/code/AssetLib/IFC/IFCBoolean.cpp +++ b/code/AssetLib/IFC/IFCBoolean.cpp @@ -388,7 +388,7 @@ void ProcessPolygonalBoundedBooleanHalfSpaceDifference(const Schema_2x3::IfcPoly n.Normalize(); // obtain the polygonal bounding volume - std::shared_ptr profile = std::shared_ptr(new TempMesh()); + std::shared_ptr profile = std::make_shared(); if (!ProcessCurve(hs->PolygonalBoundary, *profile, conv)) { IFCImporter::LogError("expected valid polyline for boundary of boolean halfspace"); return; @@ -672,7 +672,7 @@ void ProcessBooleanExtrudedAreaSolidDifference(const Schema_2x3::IfcExtrudedArea // operand should be near-planar. Luckily, this is usually the case in Ifc // buildings. - std::shared_ptr meshtmp = std::shared_ptr(new TempMesh()); + std::shared_ptr meshtmp = std::make_shared(); ProcessExtrudedAreaSolid(*as, *meshtmp, conv, false); std::vector openings(1, TempOpening(as, IfcVector3(0, 0, 0), std::move(meshtmp), std::shared_ptr()));