Skip to content

Commit

Permalink
Again, use const in for loop
Browse files Browse the repository at this point in the history
As requested by @teh. Was lost in merge with master, now added back.
  • Loading branch information
Ericson2314 committed Dec 4, 2023
1 parent 162b538 commit 3636048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hydra-queue-runner/build-remote.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 3636048

Please sign in to comment.