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

Unified Diff: cc/quads/list_container.cc

Issue 1032803002: Modify ListContainer<T>::Allocate to return a pointer of type void*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « cc/quads/list_container.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « cc/quads/list_container.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698