Style Change: NULL->nullptr
DOCS_PREVIEW= https://skia.org/?cl=1316233002
Review URL: https://codereview.chromium.org/1316233002
diff --git a/src/animator/SkDisplayable.cpp b/src/animator/SkDisplayable.cpp
index 52532fe..dc3cecf 100644
--- a/src/animator/SkDisplayable.cpp
+++ b/src/animator/SkDisplayable.cpp
@@ -64,14 +64,14 @@
}
SkDisplayable* SkDisplayable::contains(const SkString& ) {
- return NULL;
+ return nullptr;
}
SkDisplayable* SkDisplayable::deepCopy(SkAnimateMaker* maker) {
SkDisplayTypes type = getType();
if (type == SkType_Unknown) {
SkASSERT(0);
- return NULL;
+ return nullptr;
}
SkDisplayable* copy = SkDisplayType::CreateInstance(maker, type);
int index = -1;
@@ -79,7 +79,7 @@
const SkMemberInfo* info;
do {
info = copy->getMember(++index);
- if (info == NULL)
+ if (info == nullptr)
break;
if (info->fType == SkType_MemberProperty) {
SkScriptValue value;
@@ -93,7 +93,7 @@
if (info->fType == SkType_Array) {
SkTDOperandArray* array = (SkTDOperandArray*) info->memberData(this);
int arrayCount;
- if (array == NULL || (arrayCount = array->count()) == 0)
+ if (array == nullptr || (arrayCount = array->count()) == 0)
continue;
SkTDOperandArray* copyArray = (SkTDOperandArray*) info->memberData(copy);
copyArray->setCount(arrayCount);
@@ -110,7 +110,7 @@
}
if (SkDisplayType::IsDisplayable(maker, info->fType)) {
SkDisplayable** displayable = (SkDisplayable**) info->memberData(this);
- if (*displayable == NULL || *displayable == (SkDisplayable*) -1)
+ if (*displayable == nullptr || *displayable == (SkDisplayable*) -1)
continue;
SkDisplayable* deeper = (*displayable)->deepCopy(maker);
info->setMemberData(copy, deeper, sizeof(deeper));
@@ -160,7 +160,7 @@
SkOperand blankValues[2];
do {
info = this->getMember(++index);
- if (NULL == info) {
+ if (nullptr == info) {
//SkDebugf("\n");
break;
}
@@ -185,7 +185,7 @@
if (info->fType == SkType_Array) {
SkTDOperandArray* array = (SkTDOperandArray*) info->memberData(this);
int arrayCount;
- if (array == NULL || (arrayCount = array->count()) == 0)
+ if (array == nullptr || (arrayCount = array->count()) == 0)
continue;
SkDisplayTypes elementType;
if (type == SkType_Array) {
@@ -259,12 +259,12 @@
SkDisplayList::fIndent += 4;
do {
info = this->getMember(++index);
- if (NULL == info) {
+ if (nullptr == info) {
break;
}
if (SkDisplayType::IsDisplayable(maker, info->fType)) {
SkDisplayable** displayable = (SkDisplayable**) info->memberData(this);
- if (*displayable == NULL || *displayable == (SkDisplayable*) -1)
+ if (*displayable == nullptr || *displayable == (SkDisplayable*) -1)
continue;
if (closedAngle == false) {
SkDebugf(">\n");
@@ -422,21 +422,21 @@
}
const SkFunctionParamType* SkDisplayable::getFunctionsParameters() {
- return NULL;
+ return nullptr;
}
const SkMemberInfo* SkDisplayable::getMember(int index) {
- return NULL;
+ return nullptr;
}
const SkMemberInfo* SkDisplayable::getMember(const char name[]) {
- return NULL;
+ return nullptr;
}
const SkFunctionParamType* SkDisplayable::getParameters(const SkMemberInfo* info,
int* paramCount) {
const SkFunctionParamType* params = getFunctionsParameters();
- SkASSERT(params != NULL);
+ SkASSERT(params != nullptr);
int funcIndex = info->functionIndex();
// !!! eventually break traversing params into an external function (maybe this whole function)
int index = funcIndex;
@@ -456,7 +456,7 @@
}
SkDisplayable* SkDisplayable::getParent() const {
- return NULL;
+ return nullptr;
}
bool SkDisplayable::getProperty(int index, SkScriptValue* ) const {
@@ -484,7 +484,7 @@
void SkDisplayable::onEndElement(SkAnimateMaker& ) {}
const SkMemberInfo* SkDisplayable::preferredChild(SkDisplayTypes type) {
- return NULL;
+ return nullptr;
}
bool SkDisplayable::resolveIDs(SkAnimateMaker& maker, SkDisplayable* original, SkApply* apply) {