From 3730b7414f6f689fff955bdf885a2e7a205499c8 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Tue, 8 Nov 2022 11:30:53 -0500 Subject: [PATCH] Use make_shared in IFCBoolean --- code/AssetLib/IFC/IFCBoolean.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()));