Index: src/gpu/GrAllocator.h |
diff --git a/src/gpu/GrAllocator.h b/src/gpu/GrAllocator.h |
index 37c123f7936c097558896eabfb9a349d2ced488f..fd45e8ad68b310bf92593b531cce7f4f7e4110db 100644 |
--- a/src/gpu/GrAllocator.h |
+++ b/src/gpu/GrAllocator.h |
@@ -244,14 +244,14 @@ public: |
*/ |
T& push_back() { |
void* item = fAllocator.push_back(); |
- SkASSERT(NULL != item); |
+ SkASSERT(item); |
SkNEW_PLACEMENT(item, T); |
return *(T*)item; |
} |
T& push_back(const T& t) { |
void* item = fAllocator.push_back(); |
- SkASSERT(NULL != item); |
+ SkASSERT(item); |
SkNEW_PLACEMENT_ARGS(item, T, (t)); |
return *(T*)item; |
} |