summaryrefslogtreecommitdiff
path: root/xfa/fde/css/fde_cssstyleselector.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-23 17:19:20 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-23 17:19:20 -0700
commita2d699f1462050833f959ebcf24853c2a6a10f72 (patch)
tree35cc25303ebc2bd68d36255e6db69a08f043dc66 /xfa/fde/css/fde_cssstyleselector.h
parentdb1a24e86d40977fb6d8aa8fa57dadee4c2f1be1 (diff)
downloadpdfium-a2d699f1462050833f959ebcf24853c2a6a10f72.tar.xz
Rename IFX_Unknown to IFX_Retainable.
Rename addRef() method to Retain() to match Release(). This CL does not convert to CFX_RetainPtrs, which will happen in a follow-on. Review-Url: https://codereview.chromium.org/2005933002
Diffstat (limited to 'xfa/fde/css/fde_cssstyleselector.h')
-rw-r--r--xfa/fde/css/fde_cssstyleselector.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/xfa/fde/css/fde_cssstyleselector.h b/xfa/fde/css/fde_cssstyleselector.h
index cb54aaed7f..7227f9aab9 100644
--- a/xfa/fde/css/fde_cssstyleselector.h
+++ b/xfa/fde/css/fde_cssstyleselector.h
@@ -388,11 +388,10 @@ class CFDE_CSSComputedStyle : public IFDE_CSSComputedStyle,
CFDE_CSSComputedStyle(IFX_MemoryAllocator* pAlloc)
: m_dwRefCount(1), m_pAllocator(pAlloc) {}
- ~CFDE_CSSComputedStyle() {}
-
- // IFX_Unknown:
- uint32_t AddRef() override { return ++m_dwRefCount; }
+ ~CFDE_CSSComputedStyle() override {}
+ // IFX_Retainable:
+ uint32_t Retain() override { return ++m_dwRefCount; }
uint32_t Release() override {
uint32_t dwRefCount = --m_dwRefCount;
if (dwRefCount == 0) {