ifcparse: fix clang-tidy warning readability-implicit-bool-conversion

This commit is contained in:
Dirk Olbrich
2023-10-24 14:16:26 +02:00
committed by Thomas Krijnen
parent 95b5926353
commit c29e7b32ad
12 changed files with 158 additions and 159 deletions
+1 -1
View File
@@ -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;