Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: tools/gn/path_output.cc

Issue 610293003: Replace more for loops in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/parser.cc ('k') | tools/gn/scope.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/path_output.cc
diff --git a/tools/gn/path_output.cc b/tools/gn/path_output.cc
index 2ef060a4d59312b06136f57be380bd21d0eecbf6..de398ec20f74b9894d3062813cff36dcda73454d 100644
--- a/tools/gn/path_output.cc
+++ b/tools/gn/path_output.cc
@@ -77,9 +77,9 @@ void PathOutput::WriteFile(std::ostream& out, const OutputFile& file) const {
void PathOutput::WriteFiles(std::ostream& out,
const std::vector<OutputFile>& files) const {
- for (size_t i = 0; i < files.size(); i++) {
+ for (const auto& file : files) {
out << " ";
- WriteFile(out, files[i]);
+ WriteFile(out, file);
}
}
« no previous file with comments | « tools/gn/parser.cc ('k') | tools/gn/scope.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698