From 49f085dddff10473b6ebf832a974288300224e60 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Fri, 5 Sep 2014 13:34:00 -0700 Subject: "NULL !=" = NULL R=reed@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/544233002 --- include/core/SkTLazy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/core/SkTLazy.h') diff --git a/include/core/SkTLazy.h b/include/core/SkTLazy.h index a291e22a13..a1dc0013fc 100644 --- a/include/core/SkTLazy.h +++ b/include/core/SkTLazy.h @@ -88,7 +88,7 @@ public: * Returns true if a valid object has been initialized in the SkTLazy, * false otherwise. */ - bool isValid() const { return NULL != fPtr; } + bool isValid() const { return SkToBool(fPtr); } /** * Returns the object. This version should only be called when the caller @@ -166,7 +166,7 @@ public: * Returns a writable T*. The first time this is called the initial object is cloned. */ T* writable() { - SkASSERT(NULL != fObj); + SkASSERT(fObj); if (!fLazy.isValid()) { fLazy.set(*fObj); fObj = fLazy.get(); -- cgit v1.2.3