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

Unified Diff: tools/gn/err.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/commands.cc ('k') | tools/gn/function_exec_script.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/err.cc
diff --git a/tools/gn/err.cc b/tools/gn/err.cc
index 8038bad1dd5d39f7d67911bac41e708d37eea89a..6a9033d1ba4f11880bf2130d198958942936d21f 100644
--- a/tools/gn/err.cc
+++ b/tools/gn/err.cc
@@ -186,6 +186,6 @@ void Err::InternalPrintToStdout(bool is_sub_err) const {
OutputString(help_text_ + "\n");
// Sub errors.
- for (size_t i = 0; i < sub_errs_.size(); i++)
- sub_errs_[i].InternalPrintToStdout(true);
+ for (const auto& sub_err : sub_errs_)
+ sub_err.InternalPrintToStdout(true);
}
« no previous file with comments | « tools/gn/commands.cc ('k') | tools/gn/function_exec_script.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698