summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_weak_ptr.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-03 13:54:27 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-03 13:54:27 -0700
commitabab61a1fcd776964a15c528dd2dd034fb31edf0 (patch)
tree72b991193f09b7e60218b91e44cf676807f4e76d /core/fxcrt/cfx_weak_ptr.h
parentbcf46238b4533a9da91f4fa5d7248bbc85511dbd (diff)
downloadpdfium-abab61a1fcd776964a15c528dd2dd034fb31edf0.tar.xz
Rename CFX_WeakPtr::Clear() to DestroyObject()
|Clear| is too easily mistaken for "clear this pointer only." Review-Url: https://codereview.chromium.org/2385303002
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();