Index: third_party/WebKit/Source/wtf/TerminatedArray.h |
diff --git a/third_party/WebKit/Source/wtf/TerminatedArray.h b/third_party/WebKit/Source/wtf/TerminatedArray.h |
index 3134c25875a010571d57b5bd6682a5e003c6c503..a20cbeecd108b77107cd1ef9b0d50981a8145558 100644 |
--- a/third_party/WebKit/Source/wtf/TerminatedArray.h |
+++ b/third_party/WebKit/Source/wtf/TerminatedArray.h |
@@ -77,12 +77,17 @@ private: |
typedef PassOwnPtr<TerminatedArray> PassPtr; |
typedef OwnPtr<TerminatedArray> Ptr; |
+ static PassPtr release(Ptr& ptr) |
+ { |
+ return ptr.release(); |
+ } |
+ |
static PassPtr create(size_t capacity) |
{ |
return adoptPtr(static_cast<TerminatedArray*>(WTF::Partitions::fastMalloc(capacity * sizeof(T), WTF_HEAP_PROFILER_TYPE_NAME(T)))); |
} |
- static PassPtr resize(PassPtr ptr, size_t capacity) |
+ static PassPtr resize(Ptr ptr, size_t capacity) |
{ |
return adoptPtr(static_cast<TerminatedArray*>(WTF::Partitions::fastRealloc(ptr.leakPtr(), capacity * sizeof(T), WTF_HEAP_PROFILER_TYPE_NAME(T)))); |
} |