fix Coverity issues

This commit is contained in:
wmayer
2016-08-21 18:46:40 +02:00
parent 56ff619cd8
commit c2dd2e2b99
20 changed files with 50 additions and 53 deletions

View File

@@ -683,10 +683,9 @@ Py::Object TopoShapeFacePy::getOuterWire(void) const
TopoDS_Wire clWire = ShapeAnalysis::OuterWire(clFace);
return Py::Object(new TopoShapeWirePy(new TopoShape(clWire)),true);
}
else
else {
throw Py::Exception("Internal error, TopoDS_Shape is not a face!");
return Py::Object();
}
}
Py::Object TopoShapeFacePy::getMass(void) const