summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_weak_ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_weak_ptr.h')
-rw-r--r--core/fxcrt/cfx_weak_ptr.h2
1 files changed, 1 insertions, 1 deletions
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();