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:
wmayer
2019-03-13 14:07:28 +01:00
parent 5f52bd7b46
commit 87bf7094a5
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ PyObject *PropertyPartShape::getPyObject(void)
}
}
if (prop) prop->setConst();
prop->setConst();
return prop;
}

View File

@@ -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;
}
}