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

Unified Diff: third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h

Issue 1884113002: Remove RawPtr.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix HeapTest.Bind expectation Created 4 years, 8 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 | « third_party/WebKit/Source/wtf/TerminatedArray.h ('k') | third_party/WebKit/Source/wtf/TypeTraits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
diff --git a/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h b/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
index eec013109a064e12c8b59c5da88753b02d5039d4..a7ec3305a77d0bdde0389d648d49bc8bdc4077a3 100644
--- a/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
+++ b/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
@@ -35,7 +35,7 @@ public:
} else {
ASSERT(m_array->at(m_count - 1).isLastInArray());
m_capacity += count;
- m_array = ArrayType<T>::Allocator::resize(m_array.release(), m_capacity);
+ m_array = ArrayType<T>::Allocator::resize(ArrayType<T>::Allocator::release(m_array), m_capacity);
m_array->at(m_count - 1).setLastInArray(false);
}
m_array->at(m_capacity - 1).setLastInArray(true);
@@ -54,7 +54,7 @@ public:
{
RELEASE_ASSERT(m_count == m_capacity);
assertValid();
- return m_array.release();
+ return ArrayType<T>::Allocator::release(m_array);
}
private:
« no previous file with comments | « third_party/WebKit/Source/wtf/TerminatedArray.h ('k') | third_party/WebKit/Source/wtf/TypeTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698