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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTerminatedArray.h

Issue 2021713002: (Heap)TerminatedArrayBuilders are stack allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy HeapTerminatedArray Created 4 years, 7 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 | « no previous file | third_party/WebKit/Source/platform/heap/HeapTerminatedArrayBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/HeapTerminatedArray.h
diff --git a/third_party/WebKit/Source/platform/heap/HeapTerminatedArray.h b/third_party/WebKit/Source/platform/heap/HeapTerminatedArray.h
index 46685066ec00120d114320cb1e41bbd01fc7cbd9..926fb539166841ffb0540f98d2e684a63b3d326c 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTerminatedArray.h
+++ b/third_party/WebKit/Source/platform/heap/HeapTerminatedArray.h
@@ -27,13 +27,13 @@ public:
private:
// Allocator describes how HeapTerminatedArrayBuilder should create new intances
- // of TerminateArray and manage their lifetimes.
+ // of HeapTerminatedArray and manage their lifetimes.
struct Allocator final {
STATIC_ONLY(Allocator);
- typedef HeapTerminatedArray* PassPtr;
- typedef HeapTerminatedArray* Ptr;
+ using PassPtr = HeapTerminatedArray*;
+ using Ptr = Member<HeapTerminatedArray>;
- static PassPtr release(Ptr ptr)
+ static PassPtr release(Ptr& ptr)
{
return ptr;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/HeapTerminatedArrayBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698