diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-26 15:09:33 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-26 15:09:33 -0700 |
commit | 811a4f617283a3ea22381a293b71d3c68c628905 (patch) | |
tree | 317ab838ad97d630a6f4d858319baa9ac4e3c91d /core/src/fpdfdoc | |
parent | b1abf37585d86df780603a5d8a5a6af4161202a6 (diff) | |
download | pdfium-811a4f617283a3ea22381a293b71d3c68c628905.tar.xz |
Remove CPDF_Reference::Create(), make logic match master
Makes the files in this CL identical to master, since there are
no XFA specifics.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1425663003 .
Diffstat (limited to 'core/src/fpdfdoc')
-rw-r--r-- | core/src/fpdfdoc/doc_annot.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/fpdfdoc/doc_annot.cpp b/core/src/fpdfdoc/doc_annot.cpp index dc5ccb811c..d37b1aaadb 100644 --- a/core/src/fpdfdoc/doc_annot.cpp +++ b/core/src/fpdfdoc/doc_annot.cpp @@ -30,10 +30,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); |