diff --git a/src/ifcparse/IfcUtil.h b/src/ifcparse/IfcUtil.h index 9707100988..216bd29f36 100644 --- a/src/ifcparse/IfcUtil.h +++ b/src/ifcparse/IfcUtil.h @@ -133,7 +133,7 @@ public: template typename U::list::ptr as() { typename U::list::ptr r(new typename U::list); - const bool all = U::Class() == IfcSchema::Type::ALL; + const bool all = U::Class() == IfcSchema::Type::UNDEFINED; for ( it i = begin(); i != end(); ++ i ) if (all || (*i)->is(U::Class())) r->push((U*)*i); return r; } @@ -186,7 +186,7 @@ public: template typename IfcTemplatedEntityListList::ptr as() { typename IfcTemplatedEntityListList::ptr r(new IfcTemplatedEntityListList); - const bool all = U::Class() == IfcSchema::Type::ALL; + const bool all = U::Class() == IfcSchema::Type::UNDEFINED; for (outer_it outer = begin(); outer != end(); ++ outer) { const std::vector& from = *outer; typename std::vector to;