Index: src/core/SkFilterShader.cpp |
diff --git a/src/core/SkFilterShader.cpp b/src/core/SkFilterShader.cpp |
index d9724897743cdb0c089e5d1558f86f5bae32b817..b52c2be8c4f56ead898b2f018206efd9ec869ca9 100644 |
--- a/src/core/SkFilterShader.cpp |
+++ b/src/core/SkFilterShader.cpp |
@@ -30,7 +30,7 @@ SkFlattenable* SkFilterShader::CreateProc(SkReadBuffer& buffer) { |
SkAutoTUnref<SkShader> shader(buffer.readShader()); |
SkAutoTUnref<SkColorFilter> filter(buffer.readColorFilter()); |
if (!shader.get() || !filter.get()) { |
- return NULL; |
+ return nullptr; |
} |
return new SkFilterShader(shader, filter); |
} |
@@ -59,8 +59,8 @@ uint32_t SkFilterShader::FilterShaderContext::getFlags() const { |
SkShader::Context* SkFilterShader::onCreateContext(const ContextRec& rec, void* storage) const { |
char* shaderContextStorage = (char*)storage + sizeof(FilterShaderContext); |
SkShader::Context* shaderContext = fShader->createContext(rec, shaderContextStorage); |
- if (NULL == shaderContext) { |
- return NULL; |
+ if (nullptr == shaderContext) { |
+ return nullptr; |
} |
return new (storage) FilterShaderContext(*this, shaderContext, rec); |
} |