mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 19:34:34 +00:00
ifcparse: fix clang-tidy warning readability-implicit-bool-conversion
This commit is contained in:
committed by
Thomas Krijnen
parent
95b5926353
commit
c29e7b32ad
@@ -84,7 +84,7 @@ class IFC_PARSE_API IfcEntityInstanceData {
|
||||
if (type_ == 0) {
|
||||
return 0;
|
||||
}
|
||||
if (type_->as_entity()) {
|
||||
if (type_->as_entity() != nullptr) {
|
||||
return type_->as_entity()->attribute_count();
|
||||
}
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user