Index: include/core/SkRefCnt.h |
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h |
index ce38c67bd56a90ce624b584011a981b1fe0b26e2..f092e778f3ee25ae7ea4ec59790da2b29d8caada 100644 |
--- a/include/core/SkRefCnt.h |
+++ b/include/core/SkRefCnt.h |
@@ -168,7 +168,7 @@ template <typename T> static inline void SkSafeUnref(T* obj) { |
} |
template<typename T> static inline void SkSafeSetNull(T*& obj) { |
- if (NULL != obj) { |
+ if (obj) { |
obj->unref(); |
obj = NULL; |
} |