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

Unified Diff: tools/gn/substitution_pattern.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/substitution_list.cc ('k') | tools/gn/substitution_pattern_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/substitution_pattern.cc
diff --git a/tools/gn/substitution_pattern.cc b/tools/gn/substitution_pattern.cc
index cb1bd24ef082d1103364e60f291b6419eb521979..60ec191bcc0681fa7cb953815e84441ce64c8b01 100644
--- a/tools/gn/substitution_pattern.cc
+++ b/tools/gn/substitution_pattern.cc
@@ -23,7 +23,7 @@ SubstitutionPattern::Subrange::Subrange(SubstitutionType t,
SubstitutionPattern::Subrange::~Subrange() {
}
-SubstitutionPattern::SubstitutionPattern() : origin_(NULL) {
+SubstitutionPattern::SubstitutionPattern() : origin_(nullptr) {
}
SubstitutionPattern::~SubstitutionPattern() {
@@ -95,7 +95,7 @@ bool SubstitutionPattern::Parse(const std::string& str,
SubstitutionPattern SubstitutionPattern::MakeForTest(const char* str) {
Err err;
SubstitutionPattern pattern;
- CHECK(pattern.Parse(str, NULL, &err)) << err.message();
+ CHECK(pattern.Parse(str, nullptr, &err)) << err.message();
return pattern;
}
« no previous file with comments | « tools/gn/substitution_list.cc ('k') | tools/gn/substitution_pattern_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698