aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrAllocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrAllocator.h')
-rw-r--r--src/gpu/GrAllocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrAllocator.h b/src/gpu/GrAllocator.h
index 37c123f793..fd45e8ad68 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;
}