summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/OwnArrayPtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/OwnArrayPtr.h')
-rw-r--r--JavaScriptCore/wtf/OwnArrayPtr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/JavaScriptCore/wtf/OwnArrayPtr.h b/JavaScriptCore/wtf/OwnArrayPtr.h
index ce056b3..643b90b 100644
--- a/JavaScriptCore/wtf/OwnArrayPtr.h
+++ b/JavaScriptCore/wtf/OwnArrayPtr.h
@@ -23,6 +23,7 @@
#include "Assertions.h"
#include "Noncopyable.h"
+#include "NullPtr.h"
#include "OwnArrayPtrCommon.h"
#include <algorithm>
@@ -73,6 +74,7 @@ public:
#endif
OwnArrayPtr& operator=(const PassOwnArrayPtr<T>&);
+ OwnArrayPtr& operator=(std::nullptr_t) { clear(); return *this; }
template<typename U> OwnArrayPtr& operator=(const PassOwnArrayPtr<U>&);
void swap(OwnArrayPtr& o) { std::swap(m_ptr, o.m_ptr); }