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

Unified Diff: tools/gn/xcode_writer.cc

Issue 2632113003: gn: fix build with GCC 5 (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/xcode_writer.cc
diff --git a/tools/gn/xcode_writer.cc b/tools/gn/xcode_writer.cc
index 242f0b0ae601aaff19d1f001650815a4d613f7b1..a780d80a8abadfb2d5d302704ff639aa4ca0150a 100644
--- a/tools/gn/xcode_writer.cc
+++ b/tools/gn/xcode_writer.cc
@@ -170,18 +170,18 @@ void SearchXCTestFiles(const Target* target,
}
// Call recursively on public and private deps.
- for (const auto& target : target->public_deps()) {
- SearchXCTestFiles(target.ptr, xctest_files_per_target);
+ for (const auto& t : target->public_deps()) {
+ SearchXCTestFiles(t.ptr, xctest_files_per_target);
const Target::FileList& deps_xctest_files =
- (*xctest_files_per_target)[target.ptr];
+ (*xctest_files_per_target)[t.ptr];
xctest_files.insert(xctest_files.end(), deps_xctest_files.begin(),
deps_xctest_files.end());
}
- for (const auto& target : target->private_deps()) {
- SearchXCTestFiles(target.ptr, xctest_files_per_target);
+ for (const auto& t : target->private_deps()) {
+ SearchXCTestFiles(t.ptr, xctest_files_per_target);
const Target::FileList& deps_xctest_files =
- (*xctest_files_per_target)[target.ptr];
+ (*xctest_files_per_target)[t.ptr];
xctest_files.insert(xctest_files.end(), deps_xctest_files.begin(),
deps_xctest_files.end());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698