Chromium Code Reviews| Index: Source/wtf/RawPtr.h |
| diff --git a/Source/wtf/RawPtr.h b/Source/wtf/RawPtr.h |
| index ee8f8f26186a7327afb76e295af3acfbfda420f1..6fdc83de5ac9cc43355554ecb8852390ff86fb17 100644 |
| --- a/Source/wtf/RawPtr.h |
| +++ b/Source/wtf/RawPtr.h |
| @@ -53,7 +53,7 @@ public: |
| T* get() const { return m_ptr; } |
| // FIXME: oilpan: Remove this once we remove RefPtrWillBeRawPtr. |
| - T* release() const { return m_ptr; } |
| + RawPtr<T> release() const { return *this; } |
| void clear() { m_ptr = 0; } |
| RawPtr& operator=(T* ptr) |