Index: cc/quads/list_container.cc |
diff --git a/cc/quads/list_container.cc b/cc/quads/list_container.cc |
index 04e1c972b8c4be0d9d2d6a0477da4f92d5d7c367..c5cbf87fa40eeec3ca47ff597439627c30879146 100644 |
--- a/cc/quads/list_container.cc |
+++ b/cc/quads/list_container.cc |
@@ -433,11 +433,10 @@ BaseElementType* ListContainer<BaseElementType>::ElementAt(size_t index) { |
} |
template <typename BaseElementType> |
-BaseElementType* ListContainer<BaseElementType>::Allocate( |
+void* ListContainer<BaseElementType>::Allocate( |
size_t size_of_actual_element_in_bytes) { |
DCHECK_LE(size_of_actual_element_in_bytes, data_->element_size()); |
- void* result = data_->Allocate(); |
- return static_cast<BaseElementType*>(result); |
+ return data_->Allocate(); |
} |
template <typename BaseElementType> |