summaryrefslogtreecommitdiff
path: root/src/csgops.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-05 04:18:12 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-05 04:18:12 (GMT)
commit81f9c7b5178adf3e7acd670914b7e01c65a0c6b8 (patch)
treeb0d8708d0754f5e319c9846bd2ae5aac772e8dc2 /src/csgops.cc
parentb93c5c50ca87f391abc1db08c85f22e309b967a8 (diff)
removed Qt foreach
Diffstat (limited to 'src/csgops.cc')
-rw-r--r--src/csgops.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/csgops.cc b/src/csgops.cc
index 334db16..98d68c7 100644
--- a/src/csgops.cc
+++ b/src/csgops.cc
@@ -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;
}
contact: Jan Huwald // Impressum