- better way to construct NULL-shared_ptr
parent
667a51e0ab
commit
078150da57
|
@ -764,7 +764,7 @@ bool ProcessGeometricItem(const IfcRepresentationItem& geo, std::vector<unsigned
|
||||||
conv.collect_openings->push_back(TempOpening(geo.ToPtr<IfcSolidModel>(),
|
conv.collect_openings->push_back(TempOpening(geo.ToPtr<IfcSolidModel>(),
|
||||||
IfcVector3(0,0,0),
|
IfcVector3(0,0,0),
|
||||||
meshtmp,
|
meshtmp,
|
||||||
boost::shared_ptr<TempMesh>((TempMesh*)NULL)));
|
boost::shared_ptr<TempMesh>()));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -582,8 +582,7 @@ void ProcessBooleanExtrudedAreaSolidDifference(const IfcExtrudedAreaSolid* as, T
|
||||||
boost::shared_ptr<TempMesh> meshtmp = boost::shared_ptr<TempMesh>(new TempMesh());
|
boost::shared_ptr<TempMesh> meshtmp = boost::shared_ptr<TempMesh>(new TempMesh());
|
||||||
ProcessExtrudedAreaSolid(*as,*meshtmp,conv,false);
|
ProcessExtrudedAreaSolid(*as,*meshtmp,conv,false);
|
||||||
|
|
||||||
std::vector<TempOpening> openings(1, TempOpening(as,IfcVector3(0,0,0),meshtmp,
|
std::vector<TempOpening> openings(1, TempOpening(as,IfcVector3(0,0,0),meshtmp,boost::shared_ptr<TempMesh>()));
|
||||||
boost::shared_ptr<TempMesh>((TempMesh*)NULL)));
|
|
||||||
|
|
||||||
result = first_operand;
|
result = first_operand;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue