Use const in for loop

As requested by @teh
This commit is contained in:
John Ericson 2023-11-30 12:19:20 -05:00
parent 0917145622
commit e172461e55

View file

@ -221,7 +221,7 @@ static BasicDerivation sendInputs(
{
BasicDerivation basicDrv(*step.drv);
for (auto & input : step.drv->inputDrvs) {
for (const auto & input : step.drv->inputDrvs) {
auto drv2 = localStore.readDerivation(input.first);
for (auto & name : input.second) {
if (auto i = get(drv2.outputs, name)) {