Home | History | Annotate | Download | only in wtf

Lines Matching refs:leakRef

71         PassRefPtr(const PassRefPtr& o) : m_ptr(o.leakRef()) { }
72 template<typename U> PassRefPtr(const PassRefPtr<U>& o) : m_ptr(o.leakRef()) { }
81 T* leakRef() const WARN_UNUSED_RETURN;
102 // FIXME: Remove releaseRef once we change all callers to call leakRef instead.
103 T* releaseRef() const WARN_UNUSED_RETURN { return leakRef(); }
113 // begins life non-null, and can only become null through a call to leakRef()
137 : m_ptr(o.leakRef())
143 : m_ptr(o.leakRef())
149 : m_ptr(o.leakRef())
159 T* leakRef() const WARN_UNUSED_RETURN { T* tmp = m_ptr; m_ptr = 0; return tmp; }
164 // FIXME: Remove releaseRef once we change all callers to call leakRef instead.
165 T* releaseRef() const WARN_UNUSED_RETURN { return leakRef(); }
185 template<typename T> inline T* PassRefPtr<T>::leakRef() const
214 m_ptr = ref.leakRef();
222 m_ptr = ref.leakRef();
285 return adoptRef(static_cast<T*>(p.leakRef()));
290 return adoptRef(const_cast<T*>(p.leakRef()));