Skip to content

Commit

Permalink
- better way to construct NULL-shared_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
acgessler committed Feb 9, 2013
1 parent 667a51e commit 078150d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/IFCGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ bool ProcessGeometricItem(const IfcRepresentationItem& geo, std::vector<unsigned
conv.collect_openings->push_back(TempOpening(geo.ToPtr<IfcSolidModel>(),
IfcVector3(0,0,0),
meshtmp,
boost::shared_ptr<TempMesh>((TempMesh*)NULL)));
boost::shared_ptr<TempMesh>()));
}
return true;
}
Expand Down
3 changes: 1 addition & 2 deletions code/IfcBoolean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,7 @@ void ProcessBooleanExtrudedAreaSolidDifference(const IfcExtrudedAreaSolid* as, T
boost::shared_ptr<TempMesh> meshtmp = boost::shared_ptr<TempMesh>(new TempMesh());
ProcessExtrudedAreaSolid(*as,*meshtmp,conv,false);

std::vector<TempOpening> openings(1, TempOpening(as,IfcVector3(0,0,0),meshtmp,
boost::shared_ptr<TempMesh>((TempMesh*)NULL)));
std::vector<TempOpening> openings(1, TempOpening(as,IfcVector3(0,0,0),meshtmp,boost::shared_ptr<TempMesh>()));

result = first_operand;

Expand Down

0 comments on commit 078150d

Please sign in to comment.