removed Qt foreach

stl_dim
Marius Kintel 2011-09-05 06:18:12 +02:00
parent b93c5c50ca
commit 81f9c7b517
1 changed files with 2 additions and 5 deletions

View File

@ -44,11 +44,8 @@ public:
AbstractNode *CsgModule::evaluate(const Context*, const ModuleInstantiation *inst) const
{
CsgNode *node = new CsgNode(inst, type);
foreach (ModuleInstantiation *v, inst->children) {
AbstractNode *n = v->evaluate(inst->ctx);
if (n != NULL)
node->children.push_back(n);
}
std::vector<AbstractNode *> evaluatednodes = inst->evaluateChildren();
node->children.insert(node->children.end(), evaluatednodes.begin(), evaluatednodes.end());
return node;
}