diff options
Diffstat (limited to 'src/animator/SkDump.cpp')
-rw-r--r-- | src/animator/SkDump.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/animator/SkDump.cpp b/src/animator/SkDump.cpp index 9f297e9d58..346b30daf7 100644 --- a/src/animator/SkDump.cpp +++ b/src/animator/SkDump.cpp @@ -56,7 +56,7 @@ bool SkDump::enable(SkAnimateMaker& maker ) { } bool SkDump::evaluate(SkAnimateMaker &maker) { - SkAnimatorScript scriptEngine(maker, NULL, SkType_Int); + SkAnimatorScript scriptEngine(maker, nullptr, SkType_Int); SkScriptValue value; const char* cScript = script.c_str(); bool success = scriptEngine.evaluateScript(&cScript, &value); @@ -91,7 +91,7 @@ void SkDump::GetEnumString(SkDisplayTypes type, int index, SkString* result) { const char* str = map.fValues; while (--index >= 0) { str = strchr(str, '|'); - if (str == NULL) { + if (str == nullptr) { result->reset(); result->appendS32(badEnum); return; @@ -99,7 +99,7 @@ void SkDump::GetEnumString(SkDisplayTypes type, int index, SkString* result) { str += 1; } const char* end = strchr(str, '|'); - if (end == NULL) + if (end == nullptr) end = str + strlen(str); result->set(str, end - str); } |