aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-17 21:47:52 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-17 21:47:52 +0000
commit57d0432b395cc4d70792d2df5794ff2e0dd02d3d (patch)
treed28cec81845375e919b669124b35d223faa14df4 /src/libstore/build
parente6f8ae56d82813edbcf09fda58305de47369f964 (diff)
Just use `auto` in two places.
Diffstat (limited to 'src/libstore/build')
-rw-r--r--src/libstore/build/worker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build/worker.cc b/src/libstore/build/worker.cc
index 4d3df26f3..17c10cd71 100644
--- a/src/libstore/build/worker.cc
+++ b/src/libstore/build/worker.cc
@@ -90,10 +90,10 @@ template<typename G>
static void removeGoal(std::shared_ptr<G> goal, std::map<StorePath, std::weak_ptr<G>> & goalMap)
{
/* !!! inefficient */
- for (typename std::map<StorePath, std::weak_ptr<G>>::iterator i = goalMap.begin();
+ for (auto i = goalMap.begin();
i != goalMap.end(); )
if (i->second.lock() == goal) {
- typename std::map<StorePath, std::weak_ptr<G>>::iterator j = i; ++j;
+ auto j = i; ++j;
goalMap.erase(i);
i = j;
}