Again, use const in for loop

As requested by @teh. Was lost in merge with master, now added back.
This commit is contained in:
John Ericson 2023-12-04 11:31:05 -05:00
parent 162b538912
commit 363604846a

View file

@ -230,7 +230,7 @@ static BasicDerivation sendInputs(
{
BasicDerivation basicDrv(*step.drv);
for (auto & [drvPath, node] : step.drv->inputDrvs.map) {
for (const auto & [drvPath, node] : step.drv->inputDrvs.map) {
auto drv2 = localStore.readDerivation(drvPath);
for (auto & name : node.value) {
if (auto i = get(drv2.outputs, name)) {