diff -r 959f90b84d7c JavaScriptCore/wtf/OwnPtr.h
--- a/JavaScriptCore/wtf/OwnPtr.h Thu Sep 09 02:08:48 2010 +0800
+++ b/JavaScriptCore/wtf/OwnPtr.h Sat Sep 11 01:05:02 2010 +0800
@@ -47,7 +47,7 @@
// transients for assigning a PassOwnPtr<T> object to a stack-allocated
// OwnPtr<T> object. It should never be called explicitly and gcc
// should optimize away the constructor when generating code.
- OwnPtr(const OwnPtr<ValueType>& o);
+ OwnPtr(OwnPtr<ValueType>& o): m_ptr(o.release()) { }
~OwnPtr() { deleteOwnedPtr(m_ptr); }