Chromium Code Reviews| Index: Source/wtf/OwnPtr.h |
| diff --git a/Source/wtf/OwnPtr.h b/Source/wtf/OwnPtr.h |
| index 3c524890e0bba0c7e3fdf2cc760856acacf2c688..c4feaeb0f421291e749d0eccba78285ab6032bd8 100644 |
| --- a/Source/wtf/OwnPtr.h |
| +++ b/Source/wtf/OwnPtr.h |
| @@ -30,8 +30,6 @@ |
| namespace WTF { |
| - // Unlike most of our smart pointers, OwnPtr can take either the pointer type or the pointed-to type. |
| - |
| template<typename T> class PassOwnPtr; |
| template<typename T> PassOwnPtr<T> adoptPtr(T*); |
| @@ -43,7 +41,7 @@ namespace WTF { |
| #endif |
| WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(OwnPtr); |
| public: |
| - typedef typename RemovePointer<T>::Type ValueType; |
|
abarth-chromium
2013/09/06 05:13:12
Is RemovePointer used anywhere else? Perhaps we c
|
| + typedef T ValueType; |
| typedef ValueType* PtrType; |
| OwnPtr() : m_ptr(0) { } |