fix Coverity issues
This commit is contained in:
@@ -239,7 +239,7 @@ void ViewProviderFillet::updateData(const App::Property* prop)
|
||||
return;
|
||||
Part::Fillet* objFill = dynamic_cast<Part::Fillet*>(getObject());
|
||||
Part::Feature* objBase = dynamic_cast<Part::Feature*>(objFill->Base.getValue());
|
||||
if (objBase) {
|
||||
if (objFill && objBase) {
|
||||
const TopoDS_Shape& baseShape = objBase->Shape.getValue();
|
||||
const TopoDS_Shape& fillShape = objFill->Shape.getValue();
|
||||
|
||||
@@ -342,7 +342,7 @@ void ViewProviderChamfer::updateData(const App::Property* prop)
|
||||
return;
|
||||
Part::Chamfer* objCham = dynamic_cast<Part::Chamfer*>(getObject());
|
||||
Part::Feature* objBase = dynamic_cast<Part::Feature*>(objCham->Base.getValue());
|
||||
if (objBase) {
|
||||
if (objCham && objBase) {
|
||||
const TopoDS_Shape& baseShape = objBase->Shape.getValue();
|
||||
const TopoDS_Shape& chamShape = objCham->Shape.getValue();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user