| 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;
|
| }
|
|
|