summaryrefslogtreecommitdiff
path: root/core/src/fpdfdoc
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-22 15:16:15 -0700
committerLei Zhang <thestig@chromium.org>2015-06-22 15:16:15 -0700
commit6ea012325fca56a37b9adbda2d3549569d242271 (patch)
treeb368fc4fe7f8647cb509513d96dce8eec14d7c42 /core/src/fpdfdoc
parent5ab3fc60fc44aca144607416d18e7efdc1203fe6 (diff)
downloadpdfium-6ea012325fca56a37b9adbda2d3549569d242271.tar.xz
Cleanup: Get rid of CPDF_Reference::Create().
Just call new CPDF_Reference instead. R=jam@chromium.org Review URL: https://codereview.chromium.org/1194343002.
Diffstat (limited to 'core/src/fpdfdoc')
-rw-r--r--core/src/fpdfdoc/doc_annot.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/fpdfdoc/doc_annot.cpp b/core/src/fpdfdoc/doc_annot.cpp
index 98cd01ba15..0a746190c0 100644
--- a/core/src/fpdfdoc/doc_annot.cpp
+++ b/core/src/fpdfdoc/doc_annot.cpp
@@ -31,10 +31,7 @@ CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage)
FX_DWORD dwObjNum = pDict->GetObjNum();
if (dwObjNum == 0) {
dwObjNum = m_pDocument->AddIndirectObject(pDict);
- CPDF_Reference* pAction = CPDF_Reference::Create(m_pDocument, dwObjNum);
- if (pAction == NULL) {
- break;
- }
+ CPDF_Reference* pAction = new CPDF_Reference(m_pDocument, dwObjNum);
pAnnots->InsertAt(i, pAction);
pAnnots->RemoveAt(i + 1);
pDict = pAnnots->GetDict(i);