[Part] remove more superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 01:36:27 +02:00
parent dfecb337e7
commit 0ff8a02105
7 changed files with 10 additions and 10 deletions

View File

@@ -207,7 +207,7 @@ ResultEntry::~ResultEntry()
void ResultEntry::buildEntryName()
{
ResultEntry *parentEntry = this;
while(parentEntry->parent != nullptr)
while(parentEntry->parent)
{
ResultEntry *temp = parentEntry->parent;
if (!temp->parent)
@@ -838,7 +838,7 @@ bool TaskCheckGeometryResults::split(QString &input, QString &doc, QString &obje
QString PartGui::buildSelectionName(const ResultEntry *entry, const TopoDS_Shape &shape)
{
const ResultEntry *parentEntry = entry;
while(parentEntry->parent != nullptr)
while(parentEntry->parent)
{
ResultEntry *temp = parentEntry->parent;
if (!temp->parent)