refactor(3p/nix/libexpr): state->allocBindings -> Bindings::NewGC
EvalState::allocBindings had little to do with Bindings, other than returning them, and didn't belong in that class.
This commit is contained in:
parent
e24466c795
commit
b3c9166b23
10 changed files with 14 additions and 15 deletions
|
|
@ -33,7 +33,7 @@ MixEvalArgs::MixEvalArgs() {
|
|||
}
|
||||
|
||||
Bindings* MixEvalArgs::getAutoArgs(EvalState& state) {
|
||||
Bindings* res = state.allocBindings(autoArgs.size());
|
||||
Bindings* res = Bindings::NewGC();
|
||||
for (auto& i : autoArgs) {
|
||||
Value* v = state.allocValue();
|
||||
if (i.second[0] == 'E') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue