From e172461e550676a9a295cf917f9b6fab623af3e6 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 30 Nov 2023 12:19:20 -0500 Subject: [PATCH] Use `const` in for loop As requested by @teh --- src/hydra-queue-runner/build-remote.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index a5892016..ca508b8b 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -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)) {