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

Unified Diff: third_party/WebKit/Source/wtf/TerminatedArrayBuilder.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 | « third_party/WebKit/Source/wtf/TerminatedArray.h ('k') | no next file » | 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 a7ec3305a77d0bdde0389d648d49bc8bdc4077a3..14e079f2c3c6fbdf2e216c9a4125c0adfcdcae42 100644
--- a/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
+++ b/third_party/WebKit/Source/wtf/TerminatedArrayBuilder.h
@@ -4,13 +4,13 @@
#ifndef TerminatedArrayBuilder_h
#define TerminatedArrayBuilder_h
-#include "wtf/OwnPtr.h"
+#include "wtf/Allocator.h"
namespace WTF {
template<typename T, template <typename> class ArrayType = TerminatedArray>
class TerminatedArrayBuilder {
- DISALLOW_NEW();
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(TerminatedArrayBuilder);
public:
explicit TerminatedArrayBuilder(typename ArrayType<T>::Allocator::PassPtr array)
« no previous file with comments | « third_party/WebKit/Source/wtf/TerminatedArray.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698