ifcparse: fix clang-tidy warning readability-else-after-return

This commit is contained in:
Dirk Olbrich
2023-10-24 12:21:32 +02:00
committed by Thomas Krijnen
parent b264408d85
commit 9f40674d91
12 changed files with 160 additions and 161 deletions
+2 -4
View File
@@ -206,9 +206,8 @@ class IFC_PARSE_API IfcFile {
aggregate_of_instance::ptr untyped_list = instances_by_type(&T::Class());
if (untyped_list) {
return untyped_list->as<T>();
} else {
return typename T::list::ptr(new typename T::list);
}
return typename T::list::ptr(new typename T::list);
}
template <class T>
@@ -216,9 +215,8 @@ class IFC_PARSE_API IfcFile {
aggregate_of_instance::ptr untyped_list = instances_by_type_excl_subtypes(&T::Class());
if (untyped_list) {
return untyped_list->as<T>();
} else {
return typename T::list::ptr(new typename T::list);
}
return typename T::list::ptr(new typename T::list);
}
/// Returns all entities in the file that match the positional argument.