forked from lix-project/hydra
Use const
in for loop
As requested by @teh
This commit is contained in:
parent
0917145622
commit
e172461e55
|
@ -221,7 +221,7 @@ static BasicDerivation sendInputs(
|
||||||
{
|
{
|
||||||
BasicDerivation basicDrv(*step.drv);
|
BasicDerivation basicDrv(*step.drv);
|
||||||
|
|
||||||
for (auto & input : step.drv->inputDrvs) {
|
for (const auto & input : step.drv->inputDrvs) {
|
||||||
auto drv2 = localStore.readDerivation(input.first);
|
auto drv2 = localStore.readDerivation(input.first);
|
||||||
for (auto & name : input.second) {
|
for (auto & name : input.second) {
|
||||||
if (auto i = get(drv2.outputs, name)) {
|
if (auto i = get(drv2.outputs, name)) {
|
||||||
|
|
Loading…
Reference in a new issue