diff options
Diffstat (limited to 'src/projection.cc')
-rw-r--r-- | src/projection.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/projection.cc b/src/projection.cc index ce702e4..5a7ea6e 100644 --- a/src/projection.cc +++ b/src/projection.cc @@ -73,11 +73,8 @@ AbstractNode *ProjectionModule::evaluate(const Context *ctx, const ModuleInstant if (cut.type == Value::BOOL) node->cut_mode = cut.b; - foreach (ModuleInstantiation *v, inst->children) { - AbstractNode *n = v->evaluate(inst->ctx); - if (n) - node->children.push_back(n); - } + std::vector<AbstractNode *> evaluatednodes = inst->evaluateChildren(); + node->children.insert(node->children.end(), evaluatednodes.begin(), evaluatednodes.end()); return node; } |