Index: src/core/SkColorFilterShader.cpp |
diff --git a/src/core/SkColorFilterShader.cpp b/src/core/SkColorFilterShader.cpp |
index c7cf76b53ea7c81e78db0969166cd1c5b71762bb..f5a3b9c9e16e20e781308aa09d20d01a10f8dda1 100644 |
--- a/src/core/SkColorFilterShader.cpp |
+++ b/src/core/SkColorFilterShader.cpp |
@@ -24,12 +24,12 @@ SkColorFilterShader::SkColorFilterShader(SkShader* shader, SkColorFilter* filter |
} |
SkFlattenable* SkColorFilterShader::CreateProc(SkReadBuffer& buffer) { |
- SkAutoTUnref<SkShader> shader(buffer.readShader()); |
+ auto shader = buffer.readShader(); |
SkAutoTUnref<SkColorFilter> filter(buffer.readColorFilter()); |
- if (!shader.get() || !filter.get()) { |
+ if (!shader || !filter.get()) { |
return nullptr; |
} |
- return new SkColorFilterShader(shader, filter); |
+ return new SkColorFilterShader(shader.get(), filter); |
} |
void SkColorFilterShader::flatten(SkWriteBuffer& buffer) const { |