summaryrefslogtreecommitdiff
path: root/src/module.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/module.cc')
-rw-r--r--src/module.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/module.cc b/src/module.cc
index 7d83975..3f6dd22 100644
--- a/src/module.cc
+++ b/src/module.cc
@@ -112,14 +112,7 @@ std::string ModuleInstantiation::dump(const std::string &indent) const
AbstractNode *ModuleInstantiation::evaluate_instance(const Context *ctx) const
{
- EvalContext c(ctx);
- BOOST_FOREACH(const Assignment &arg, this->arguments) {
- c.eval_arguments.push_back(std::make_pair(arg.first,
- arg.second ?
- arg.second->evaluate(ctx) :
- Value()));
- }
- c.children = this->children;
+ EvalContext c(ctx, this->arguments, &this->children);
#if 0 && DEBUG
PRINT("New eval ctx:");
contact: Jan Huwald // Impressum