PVS: V1004 A pointer was used unsafely after it was verified against nullptr

This commit is contained in:
wmayer
2020-07-17 14:26:29 +02:00
parent 9ee3cd222b
commit 9424395afc
6 changed files with 14 additions and 11 deletions

View File

@@ -699,7 +699,7 @@ void DocumentObject::onChanged(const Property* prop)
return;
if(!GetApplication().isRestoring() &&
prop && !prop->testStatus(Property::PartialTrigger) &&
!prop->testStatus(Property::PartialTrigger) &&
getDocument() &&
getDocument()->testStatus(Document::PartialDoc))
{