From b5c9de8d64c112ce57a7c64ea72bc6705d3fee08 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 17 Feb 2015 20:36:23 +0000 Subject: [PATCH] Changes related to r312 --- src/ifcparse/IfcUtil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;