From 078150da57752fb1644cf87f6e493a8c4bcab053 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Sat, 9 Feb 2013 17:42:11 +0100 Subject: [PATCH] - better way to construct NULL-shared_ptr --- code/IFCGeometry.cpp | 2 +- code/IfcBoolean.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/code/IFCGeometry.cpp b/code/IFCGeometry.cpp index cb2213d7e..1d9c11dca 100644 --- a/code/IFCGeometry.cpp +++ b/code/IFCGeometry.cpp @@ -764,7 +764,7 @@ bool ProcessGeometricItem(const IfcRepresentationItem& geo, std::vectorpush_back(TempOpening(geo.ToPtr(), IfcVector3(0,0,0), meshtmp, - boost::shared_ptr((TempMesh*)NULL))); + boost::shared_ptr())); } return true; } diff --git a/code/IfcBoolean.cpp b/code/IfcBoolean.cpp index 681b3be0e..b52727c14 100644 --- a/code/IfcBoolean.cpp +++ b/code/IfcBoolean.cpp @@ -582,8 +582,7 @@ void ProcessBooleanExtrudedAreaSolidDifference(const IfcExtrudedAreaSolid* as, T boost::shared_ptr meshtmp = boost::shared_ptr(new TempMesh()); ProcessExtrudedAreaSolid(*as,*meshtmp,conv,false); - std::vector openings(1, TempOpening(as,IfcVector3(0,0,0),meshtmp, - boost::shared_ptr((TempMesh*)NULL))); + std::vector openings(1, TempOpening(as,IfcVector3(0,0,0),meshtmp,boost::shared_ptr())); result = first_operand;