Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: src/gpu/GrGeometryBuffer.h

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGeometryBuffer.h
diff --git a/src/gpu/GrGeometryBuffer.h b/src/gpu/GrGeometryBuffer.h
index 3d57f1dbec5ea15c550177debbc2a63d61e6b4ef..c3e1c65252c4f7376a7abd016704308173abdf38 100644
--- a/src/gpu/GrGeometryBuffer.h
+++ b/src/gpu/GrGeometryBuffer.h
@@ -58,7 +58,7 @@ public:
* The pointer returned by the previous map call will no longer be valid.
*/
void unmap() {
- SkASSERT(NULL != fMapPtr);
+ SkASSERT(fMapPtr);
this->onUnmap();
fMapPtr = NULL;
}
@@ -76,7 +76,7 @@ public:
@return true if the buffer is mapped, false otherwise.
*/
- bool isMapped() const { return NULL != fMapPtr; }
+ bool isMapped() const { return SkToBool(fMapPtr); }
/**
* Updates the buffer data.
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698