summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-16 14:10:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-16 14:10:22 -0700
commit44d83f3f0b90f4c53ca42115d4f1ed614b25c3a7 (patch)
treef54ee0cd640a9480341844dac86a4178892c94e5 /fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp
parent3cc01f2ba255f4b7584668ee2b8e5ed97792c26d (diff)
downloadpdfium-44d83f3f0b90f4c53ca42115d4f1ed614b25c3a7.tar.xz
Use CFX_RetainPtr<> to refcount CPDFXFA_Page
Review-Url: https://codereview.chromium.org/1984693002
Diffstat (limited to 'fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp')
-rw-r--r--fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp b/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp
index 4d2a559a39..7a9d074624 100644
--- a/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp
+++ b/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp
@@ -160,7 +160,7 @@ CPDFXFA_Page* CPDFXFA_Document::GetPage(int page_index) {
if (nCount > 0 && page_index < nCount) {
pPage = m_XFAPageList.GetAt(page_index);
if (pPage)
- pPage->AddRef();
+ pPage->Retain();
} else {
m_nPageCount = GetPageCount();
m_XFAPageList.SetSize(m_nPageCount);