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

Unified Diff: tools/gn/item.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/input_file_manager.cc ('k') | tools/gn/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/item.cc
diff --git a/tools/gn/item.cc b/tools/gn/item.cc
index a1118e8285fdb4a61efae2e45cd465166332a202..b0efd64ac0121e9f08e95e3b8736d981070d013f 100644
--- a/tools/gn/item.cc
+++ b/tools/gn/item.cc
@@ -8,20 +8,30 @@
#include "tools/gn/settings.h"
Item::Item(const Settings* settings, const Label& label)
- : settings_(settings),
- label_(label),
- defined_from_(NULL) {
+ : settings_(settings), label_(label), defined_from_(nullptr) {
}
Item::~Item() {
}
-Config* Item::AsConfig() { return NULL; }
-const Config* Item::AsConfig() const { return NULL; }
-Target* Item::AsTarget() { return NULL; }
-const Target* Item::AsTarget() const { return NULL; }
-Toolchain* Item::AsToolchain() { return NULL; }
-const Toolchain* Item::AsToolchain() const { return NULL; }
+Config* Item::AsConfig() {
+ return nullptr;
+}
+const Config* Item::AsConfig() const {
+ return nullptr;
+}
+Target* Item::AsTarget() {
+ return nullptr;
+}
+const Target* Item::AsTarget() const {
+ return nullptr;
+}
+Toolchain* Item::AsToolchain() {
+ return nullptr;
+}
+const Toolchain* Item::AsToolchain() const {
+ return nullptr;
+}
std::string Item::GetItemTypeName() const {
if (AsConfig())
« no previous file with comments | « tools/gn/input_file_manager.cc ('k') | tools/gn/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698