diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-04-21T11·52+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-04-21T11·52+0000 |
commit | d5eab2fc8293e0d14c7fd297bf7512257442295b (patch) | |
tree | aa987c9496ee667ff59eccab1681b49b363a44cd /src/libstore/derivations.cc | |
parent | 8f1bf28505e6ba8fae35859391cbab7264b0014a (diff) |
* Use foreach in a lot of places.
Diffstat (limited to 'src/libstore/derivations.cc')
-rw-r--r-- | src/libstore/derivations.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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 |