remove some unnecessary Boolean checks
- checks for true/false and nullptr
This commit is contained in:
@@ -245,7 +245,7 @@ static PropertyItem *createPropertyItem(App::Property *prop)
|
||||
PropertyModel::GroupInfo &PropertyModel::getGroupInfo(App::Property *prop)
|
||||
{
|
||||
const char* group = prop->getGroup();
|
||||
bool isEmpty = (group == nullptr || group[0] == '\0');
|
||||
bool isEmpty = (!group || group[0] == '\0');
|
||||
QString groupName = QString::fromLatin1(
|
||||
isEmpty ? QT_TRANSLATE_NOOP("App::Property", "Base") : group);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user