[App] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 03:12:01 +02:00
parent 615b1b9b00
commit fa36a57724
12 changed files with 55 additions and 54 deletions

View File

@@ -724,7 +724,7 @@ void PropertyExpressionEngine::getPathsToDocumentObject(DocumentObject* obj,
{
DocumentObject * owner = freecad_dynamic_cast<DocumentObject>(getContainer());
if (owner == nullptr || owner==obj)
if (!owner || owner==obj)
return;
for(auto &v : expressions) {