Chromium Code Reviews| Index: third_party/WebKit/Source/wtf/PassRefPtr.h |
| diff --git a/third_party/WebKit/Source/wtf/PassRefPtr.h b/third_party/WebKit/Source/wtf/PassRefPtr.h |
| index af2a5a5a3f7fa2a308888b4d188d4b44c6ccd20b..11a191f8008ed1c795e20eae609014659f3688fe 100644 |
| --- a/third_party/WebKit/Source/wtf/PassRefPtr.h |
| +++ b/third_party/WebKit/Source/wtf/PassRefPtr.h |
| @@ -70,6 +70,7 @@ public: |
| // PassRefPtr temporaries, and we don't have a need to use real const |
| // PassRefPtrs anyway. |
| PassRefPtr(const PassRefPtr& o) : m_ptr(o.leakRef()) {} |
| + PassRefPtr(const PassRefPtr&& o) : m_ptr(o.leakRef()) {} |
|
Yuta Kitamura
2016/08/24 08:26:22
Remove "const" here. It's confusing to have "const
Bugs Nash
2016/08/29 01:50:24
Done.
|
| template <typename U> PassRefPtr(const PassRefPtr<U>& o, EnsurePtrConvertibleArgDecl(U, T)) : m_ptr(o.leakRef()) {} |
| ALWAYS_INLINE ~PassRefPtr() { derefIfNotNull(m_ptr); } |