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

Unified Diff: src/gpu/GrTemplates.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/GrStrokeInfo.h ('k') | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTemplates.h
diff --git a/src/gpu/GrTemplates.h b/src/gpu/GrTemplates.h
index 2cab1327831373b11a7a1c1e438d0cde49fdb2fc..8e43a15f7b37bbbd6a39b3b32c3ddaf8c3f38bf5 100644
--- a/src/gpu/GrTemplates.h
+++ b/src/gpu/GrTemplates.h
@@ -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;
« no previous file with comments | « src/gpu/GrStrokeInfo.h ('k') | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698