summaryrefslogtreecommitdiff
path: root/src/build.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-12-09 20:02:33 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-12-09 20:28:00 +0100
commit4f3422c58ed4fc14b222cd474843affb9cc509c4 (patch)
tree5d6079f5309fabf553119fad5b01779c6a8097d0 /src/build.cc
parent5ba36c7be0a12b9b052fb172a209d3b6dffc9a99 (diff)
Various clang-tidy fixes.
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/build.cc b/src/build.cc
index ea65656..ca02514 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -114,17 +114,15 @@ int build(const ctor::settings& settings,
}
}
- for(auto process = processes.begin();
- process != processes.end();
- ++process)
+ for(auto& process : processes)
{
- if(process->valid() == false)
+ if(process.valid() == false)
{
continue;
}
- process->wait();
- auto ret = process->get();
- if(ret != 0)
+ process.wait();
+ auto ret = process.get();
+ if (ret != 0)
{
return ret;
}