Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / gpu / GrTemplates.h
index 2cab132..8e43a15 100644 (file)
@@ -41,20 +41,20 @@ public:
 
     GrAutoTRestore(T* ptr) {
         fPtr = ptr;
-        if (NULL != ptr) {
+        if (ptr) {
             fVal = *ptr;
         }
     }
 
     ~GrAutoTRestore() {
-        if (NULL != fPtr) {
+        if (fPtr) {
             *fPtr = fVal;
         }
     }
 
     // restores previously saved value (if any) and saves value for passed T*
     void reset(T* ptr) {
-        if (NULL != fPtr) {
+        if (fPtr) {
             *fPtr = fVal;
         }
         fPtr = ptr;