From d5eab2fc8293e0d14c7fd297bf7512257442295b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 21 Apr 2009 11:52:16 +0000 Subject: * Use foreach in a lot of places. --- src/libstore/derivations.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libstore/derivations.cc') diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc index d0f836cab3d9..bc2ec1f907e7 100644 --- a/src/libstore/derivations.cc +++ b/src/libstore/derivations.cc @@ -21,8 +21,7 @@ Path writeDerivation(const Derivation & drv, const string & name) { PathSet references; references.insert(drv.inputSrcs.begin(), drv.inputSrcs.end()); - for (DerivationInputs::const_iterator i = drv.inputDrvs.begin(); - i != drv.inputDrvs.end(); ++i) + foreach (DerivationInputs::const_iterator, i, drv.inputDrvs) references.insert(i->first); /* Note that the outputs of a derivation are *not* references (that can be missing (of course) and should not necessarily be -- cgit 1.4.1