From f898893607c7cda3a54ac04faaf7a985c8240a4d Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 5 Sep 2021 09:32:39 +0200 Subject: [PATCH] whitespace --- src/ifcparse/IfcParse.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 8d1b036573..70f23932ef 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -2206,23 +2206,23 @@ IfcEntityList::ptr IfcFile::getInverse(int instance_id, const IfcParse::declarat IfcEntityList::ptr all = instances_by_reference(instance_id); if (!all) return l; - for(IfcEntityList::it it = all->begin(); it != all->end(); ++it) { + for (IfcEntityList::it it = all->begin(); it != all->end(); ++it) { bool valid = type == 0 || (*it)->declaration().is(*type); if (valid && attribute_index >= 0) { - try { - Argument* arg = (*it)->data().getArgument(attribute_index); + try { + Argument* arg = (*it)->data().getArgument(attribute_index); if (arg->isNull()) { valid = false; } else if (arg->type() == IfcUtil::Argument_ENTITY_INSTANCE) { - valid = instance == *arg; - } else if (arg->type() == IfcUtil::Argument_AGGREGATE_OF_ENTITY_INSTANCE) { - IfcEntityList::ptr li = *arg; - valid = li->contains(instance); - } else if (arg->type() == IfcUtil::Argument_AGGREGATE_OF_AGGREGATE_OF_ENTITY_INSTANCE) { - IfcEntityListList::ptr li = *arg; - valid = li->contains(instance); - } - } catch (const IfcException& e) { + valid = instance == *arg; + } else if (arg->type() == IfcUtil::Argument_AGGREGATE_OF_ENTITY_INSTANCE) { + IfcEntityList::ptr li = *arg; + valid = li->contains(instance); + } else if (arg->type() == IfcUtil::Argument_AGGREGATE_OF_AGGREGATE_OF_ENTITY_INSTANCE) { + IfcEntityListList::ptr li = *arg; + valid = li->contains(instance); + } + } catch (const IfcException& e) { valid = false; Logger::Error(e); }