[Part] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-17 16:24:44 +02:00
parent c0bf0f5c72
commit 48e84945ed
6 changed files with 18 additions and 17 deletions

View File

@@ -210,7 +210,7 @@ void ResultEntry::buildEntryName()
while(parentEntry->parent != nullptr)
{
ResultEntry *temp = parentEntry->parent;
if (temp->parent == nullptr)
if (!temp->parent)
break;
parentEntry = parentEntry->parent;
}
@@ -841,7 +841,7 @@ QString PartGui::buildSelectionName(const ResultEntry *entry, const TopoDS_Shape
while(parentEntry->parent != nullptr)
{
ResultEntry *temp = parentEntry->parent;
if (temp->parent == nullptr)
if (!temp->parent)
break;
parentEntry = parentEntry->parent;
}