PVS: V601 The bool type is implicitly cast to the double type
PVS: V668 There is no sense in testing pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error
This commit is contained in:
@@ -185,7 +185,7 @@ PyObject *PropertyPartShape::getPyObject(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (prop) prop->setConst();
|
||||
prop->setConst();
|
||||
return prop;
|
||||
}
|
||||
|
||||
|
||||
@@ -925,7 +925,7 @@ double ProfileBased::getReversedAngle(const Base::Vector3d &b, const Base::Vecto
|
||||
return SketchNormal * cross;
|
||||
}
|
||||
catch (...) {
|
||||
return Reversed.getValue();
|
||||
return Reversed.getValue() ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user