remove some unnecessary Boolean checks
- checks for true/false and nullptr
This commit is contained in:
@@ -172,7 +172,6 @@ QVector<QString> buildBOPCheckResultVector()
|
||||
return results;
|
||||
}
|
||||
|
||||
|
||||
QString getBOPCheckString(const BOPAlgo_CheckStatus &status)
|
||||
{
|
||||
static QVector<QString> strings = buildBOPCheckResultVector();
|
||||
@@ -182,7 +181,6 @@ QString getBOPCheckString(const BOPAlgo_CheckStatus &status)
|
||||
return strings.at(index);
|
||||
}
|
||||
|
||||
|
||||
ResultEntry::ResultEntry()
|
||||
{
|
||||
viewProviderRoot = nullptr;
|
||||
@@ -204,9 +202,9 @@ ResultEntry::~ResultEntry()
|
||||
|
||||
void ResultEntry::buildEntryName()
|
||||
{
|
||||
ResultEntry *parentEntry = this;
|
||||
while (parentEntry->parent != nullptr) {
|
||||
ResultEntry *temp = parentEntry->parent;
|
||||
ResultEntry* parentEntry = this;
|
||||
while (parentEntry->parent) {
|
||||
ResultEntry* temp = parentEntry->parent;
|
||||
if (!temp->parent)
|
||||
break;
|
||||
parentEntry = parentEntry->parent;
|
||||
|
||||
Reference in New Issue
Block a user