Merge pull request #11849 from NixOS/autocall-const

autoCallFunction: accept const Bindings &
This commit is contained in:
Robert Hensing 2024-11-10 21:31:11 +01:00 committed by GitHub
commit 545956d56a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1730,7 +1730,7 @@ void EvalState::incrFunctionCall(ExprLambda * fun)
} }
void EvalState::autoCallFunction(Bindings & args, Value & fun, Value & res) void EvalState::autoCallFunction(const Bindings & args, Value & fun, Value & res)
{ {
auto pos = fun.determinePos(noPos); auto pos = fun.determinePos(noPos);

View File

@ -693,7 +693,7 @@ public:
* Automatically call a function for which each argument has a * Automatically call a function for which each argument has a
* default value or has a binding in the `args` map. * default value or has a binding in the `args` map.
*/ */
void autoCallFunction(Bindings & args, Value & fun, Value & res); void autoCallFunction(const Bindings & args, Value & fun, Value & res);
/** /**
* Allocation primitives. * Allocation primitives.