Index: src/images/SkImageDecoder_libpng.cpp |
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp |
index b69f87996c76c5e5a96fa7eac063d62d1f4aab02..dd1d1c8a98fd69773651dfcf4b2f15e22f35aae0 100644 |
--- a/src/images/SkImageDecoder_libpng.cpp |
+++ b/src/images/SkImageDecoder_libpng.cpp |
@@ -62,7 +62,7 @@ public: |
stream->ref(); |
} |
~SkPNGImageIndex() { |
- if (NULL != fPng_ptr) { |
+ if (fPng_ptr) { |
png_destroy_read_struct(&fPng_ptr, &fInfo_ptr, png_infopp_NULL); |
} |
} |
@@ -1161,7 +1161,7 @@ bool SkPNGImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int |
// we must do this after we have locked the pixels |
SkColorTable* ctable = bitmap.getColorTable(); |
- if (NULL != ctable) { |
+ if (ctable) { |
if (ctable->count() == 0) { |
return false; |
} |