[PD] remove more superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 01:33:28 +02:00
parent 17528eb1ca
commit dfecb337e7
17 changed files with 33 additions and 33 deletions

View File

@@ -248,7 +248,7 @@ bool ViewProvider::onDelete(const std::vector<std::string> &)
// find surrounding features in the tree
Part::BodyBase* body = PartDesign::Body::findBodyOf(getObject());
if (body != nullptr) {
if (body) {
// Deletion from the tree of a feature is handled by Document.removeObject, which has no clue
// about what a body is. Therefore, Bodies, although an "activable" container, know nothing
// about what happens at Document level with the features they contain.