Changes related to r312

This commit is contained in:
Thomas Krijnen
2015-02-17 20:36:23 +00:00
parent 5fe4cfab63
commit b5c9de8d64
+2 -2
View File
@@ -133,7 +133,7 @@ public:
template <class U>
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 <class U>
typename IfcTemplatedEntityListList<U>::ptr as() {
typename IfcTemplatedEntityListList<U>::ptr r(new IfcTemplatedEntityListList<U>);
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<IfcUtil::IfcBaseClass*>& from = *outer;
typename std::vector<U*> to;