]> git.tdb.fi Git - builder.git/blobdiff - source/datacollection.cpp
Replace basic for loops with range-based loops or algorithms
[builder.git] / source / datacollection.cpp
index 66e9a042012b9d797cfa866b3a70cd3c7b16da86..c34c9cc7949c1d73c657cdf27c8e2520866f19c9 100644 (file)
@@ -22,7 +22,6 @@ Msp::FS::Path DataCollection::generate_target_path(const Component &comp, const
 void DataCollection::find_dependencies()
 {
        source.prepare();
-       const Target::Dependencies &tdeps = source.get_transitive_dependencies();
-       for(Target::Dependencies::const_iterator i=tdeps.begin(); i!=tdeps.end(); ++i)
-               add_dependency(**i);
+       for(Target *d: source.get_transitive_dependencies())
+               add_dependency(*d);
 }