From abab61a1fcd776964a15c528dd2dd034fb31edf0 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 3 Oct 2016 13:54:27 -0700 Subject: Rename CFX_WeakPtr::Clear() to DestroyObject() |Clear| is too easily mistaken for "clear this pointer only." Review-Url: https://codereview.chromium.org/2385303002 --- core/fxcrt/cfx_weak_ptr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcrt/cfx_weak_ptr.h') diff --git a/core/fxcrt/cfx_weak_ptr.h b/core/fxcrt/cfx_weak_ptr.h index 61f15e3dda..9ac1475884 100644 --- a/core/fxcrt/cfx_weak_ptr.h +++ b/core/fxcrt/cfx_weak_ptr.h @@ -35,7 +35,7 @@ class CFX_WeakPtr { bool operator!=(const CFX_WeakPtr& that) const { return !(*this == that); } T* Get() const { return m_pHandle ? m_pHandle->Get() : nullptr; } - void Clear() { + void DeleteObject() { if (m_pHandle) { m_pHandle->Clear(); m_pHandle.Reset(); -- cgit v1.2.3