patches/webkit-26-copycons-imp.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2916 bbfbe931d152
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

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); }