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

Unified Diff: extensions/browser/api/declarative/deduping_factory_unittest.cc

Issue 598173003: Run clang-modernize -use-nullptr over src/extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: extensions/browser/api/declarative/deduping_factory_unittest.cc
diff --git a/extensions/browser/api/declarative/deduping_factory_unittest.cc b/extensions/browser/api/declarative/deduping_factory_unittest.cc
index 73d0a4b637da9a62fb9201a427122a3823f8f231..319c881d5497dcce80598e1d9156e943a1c44d19 100644
--- a/extensions/browser/api/declarative/deduping_factory_unittest.cc
+++ b/extensions/browser/api/declarative/deduping_factory_unittest.cc
@@ -59,13 +59,13 @@ scoped_refptr<const BaseClass> CreateFoo(const std::string& /*instance_type*/,
const base::Value* value,
std::string* error,
bool* bad_message) {
- const base::DictionaryValue* dict = NULL;
+ const base::DictionaryValue* dict = nullptr;
CHECK(value->GetAsDictionary(&dict));
int parameter = 0;
if (!dict->GetInteger("parameter", &parameter)) {
*error = "No parameter";
*bad_message = true;
- return scoped_refptr<const BaseClass>(NULL);
+ return scoped_refptr<const BaseClass>(nullptr);
}
return scoped_refptr<const BaseClass>(new Foo(parameter));
}

Powered by Google App Engine
This is Rietveld 408576698