Index: tools/gn/exec_process.cc |
diff --git a/tools/gn/exec_process.cc b/tools/gn/exec_process.cc |
index d499921a1f307cc8f2ce2caf7ce81b59cd032523..a28977fd5998b7f35f01ce667ca004f54ee188e3 100644 |
--- a/tools/gn/exec_process.cc |
+++ b/tools/gn/exec_process.cc |
@@ -194,8 +194,8 @@ bool ExecProcess(const base::CommandLine& cmdline, |
// Adding another element here? Remeber to increase the argument to |
// reserve(), above. |
- for (size_t i = 0; i < fd_shuffle1.size(); ++i) |
- fd_shuffle2.push_back(fd_shuffle1[i]); |
+ for (auto& elem : fd_shuffle1) |
scottmg
2015/03/13 19:58:30
const?
tfarina
2015/03/13 23:27:49
Done.
|
+ fd_shuffle2.push_back(elem); |
if (!ShuffleFileDescriptors(&fd_shuffle1)) |
_exit(127); |