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

Unified Diff: tools/gn/command_refs.cc

Issue 798333005: tools/gn: Pass clang-modernize -use-nullptr over it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address Brett's review - revert some clang-format changes Created 6 years 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/command_format.cc ('k') | tools/gn/commands.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_refs.cc
diff --git a/tools/gn/command_refs.cc b/tools/gn/command_refs.cc
index 5c15a3432abb096e7ed1c9f6c0ee7105a3cdfd4d..2bb7fe2ed8ccfa2e8747f29df6b31481d8a23f9c 100644
--- a/tools/gn/command_refs.cc
+++ b/tools/gn/command_refs.cc
@@ -324,12 +324,12 @@ int RunRefs(const std::vector<std::string>& args) {
if (tree) {
// Output dependency tree.
if (files) {
- Err(NULL, "--files option can't be used with --tree option.")
+ Err(nullptr, "--files option can't be used with --tree option.")
.PrintToStdout();
return 1;
}
if (query.size() != 1) {
- Err(NULL, "Query matches more than one target.",
+ Err(nullptr, "Query matches more than one target.",
"--tree only supports a single target as input.").PrintToStdout();
return 1;
}
@@ -337,9 +337,9 @@ int RunRefs(const std::vector<std::string>& args) {
// Recursively print all targets.
for (const auto& cur_query : query) {
if (is_file_input)
- RecursivePrintTarget(dep_map, cur_query, NULL, 0);
+ RecursivePrintTarget(dep_map, cur_query, nullptr, 0);
else
- RecursivePrintTargetDeps(dep_map, cur_query, NULL, 0);
+ RecursivePrintTargetDeps(dep_map, cur_query, nullptr, 0);
}
} else {
// Recursively print unique targets.
« no previous file with comments | « tools/gn/command_format.cc ('k') | tools/gn/commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698