diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-05 04:18:12 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-05 04:18:12 (GMT) |
commit | 81f9c7b5178adf3e7acd670914b7e01c65a0c6b8 (patch) | |
tree | b0d8708d0754f5e319c9846bd2ae5aac772e8dc2 /src/csgops.cc | |
parent | b93c5c50ca87f391abc1db08c85f22e309b967a8 (diff) |
removed Qt foreach
Diffstat (limited to 'src/csgops.cc')
-rw-r--r-- | src/csgops.cc | 7 |
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; } |