summaryrefslogtreecommitdiff
path: root/src/render.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-04 18:35:23 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-04 18:35:23 (GMT)
commit5417b4fa65098a41299bb2d693d646a5f4d06051 (patch)
tree16d92e93f7b26470aa9113e9602ffd4b7d378f35 /src/render.cc
parent2a18b857f0dccca7d9f697f7cbcae6759610429c (diff)
Ported use for Qt's foreach to BOOST_FOREACH
Diffstat (limited to 'src/render.cc')
-rw-r--r--src/render.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/render.cc b/src/render.cc
index 15b4863..48a8535 100644
--- a/src/render.cc
+++ b/src/render.cc
@@ -62,11 +62,8 @@ AbstractNode *RenderModule::evaluate(const Context *ctx, const ModuleInstantiati
if (v.type == Value::NUMBER)
node->convexity = (int)v.num;
- 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