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

Unified Diff: src/core/SkRefDict.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 4 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 | « src/core/SkRefDict.h ('k') | src/core/SkRegion.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRefDict.cpp
diff --git a/src/core/SkRefDict.cpp b/src/core/SkRefDict.cpp
index 44eddf01a982161bf5384a76f4b90a6cc73c1134..9364a39cc04b3e5a55db0017becae5b1273422fb 100644
--- a/src/core/SkRefDict.cpp
+++ b/src/core/SkRefDict.cpp
@@ -16,15 +16,15 @@ struct SkRefDict::Impl {
SkRefCnt* fData;
};
-SkRefDict::SkRefDict() : fImpl(NULL) {}
+SkRefDict::SkRefDict() : fImpl(nullptr) {}
SkRefDict::~SkRefDict() {
this->removeAll();
}
SkRefCnt* SkRefDict::find(const char name[]) const {
- if (NULL == name) {
- return NULL;
+ if (nullptr == name) {
+ return nullptr;
}
Impl* rec = fImpl;
@@ -34,16 +34,16 @@ SkRefCnt* SkRefDict::find(const char name[]) const {
}
rec = rec->fNext;
}
- return NULL;
+ return nullptr;
}
void SkRefDict::set(const char name[], SkRefCnt* data) {
- if (NULL == name) {
+ if (nullptr == name) {
return;
}
Impl* rec = fImpl;
- Impl* prev = NULL;
+ Impl* prev = nullptr;
while (rec) {
if (rec->fName.equals(name)) {
if (data) {
@@ -85,5 +85,5 @@ void SkRefDict::removeAll() {
delete rec;
rec = next;
}
- fImpl = NULL;
+ fImpl = nullptr;
}
« no previous file with comments | « src/core/SkRefDict.h ('k') | src/core/SkRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698