[Robot etc.] remove superfluous nullptr checks
This commit is contained in:
@@ -94,7 +94,7 @@ void ShapeValidator::checkEdge(const TopoDS_Shape& shape)
|
||||
void ShapeValidator::checkAndAdd(const TopoDS_Shape &shape, Handle(ShapeExtend_WireData) *aWD)
|
||||
{
|
||||
checkEdge(shape);
|
||||
if (aWD != nullptr) {
|
||||
if (aWD) {
|
||||
BRepBuilderAPI_Copy copier(shape);
|
||||
// make a copy of the shape and the underlying geometry to avoid to affect the input shapes
|
||||
(*aWD)->Add(TopoDS::Edge(copier.Shape()));
|
||||
@@ -104,7 +104,7 @@ void ShapeValidator::checkAndAdd(const TopoDS_Shape &shape, Handle(ShapeExtend_W
|
||||
void ShapeValidator::checkAndAdd(const Part::TopoShape &ts, const char *subName, Handle(ShapeExtend_WireData) *aWD)
|
||||
{
|
||||
try {
|
||||
if (subName != nullptr && *subName != '\0') {
|
||||
if (subName && *subName != '\0') {
|
||||
//we want only the subshape which is linked
|
||||
checkAndAdd(ts.getSubShape(subName), aWD);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user