- const Target::Dependencies &depends = i->second->get_dependencies();
- for(Target::Dependencies::const_iterator j=depends.begin(); j!=depends.end(); ++j)
- rdepends[*j].insert(i->second);
- const Target::Dependencies &tdepends = i->second->get_transitive_dependencies();
- for(Target::Dependencies::const_iterator j=tdepends.begin(); j!=tdepends.end(); ++j)
- rdepends[*j].insert(i->second);
+ for(Target *d: kvp.second->get_dependencies())
+ rdepends[d].insert(kvp.second);
+ for(Target *d: kvp.second->get_transitive_dependencies())
+ rdepends[d].insert(kvp.second);