aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkFilterShader.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-27 07:41:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 07:41:16 -0700
commit96fcdcc219d2a0d3579719b84b28bede76efba64 (patch)
tree0ec5ea0193d8292df8bf5ed9dd8498a5eb5763dd /src/core/SkFilterShader.cpp
parent435af2f736c85c3274a0c6760a3523810750d237 (diff)
Style Change: NULL->nullptr
Diffstat (limited to 'src/core/SkFilterShader.cpp')
-rw-r--r--src/core/SkFilterShader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkFilterShader.cpp b/src/core/SkFilterShader.cpp
index d972489774..b52c2be8c4 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);
}