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