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/fpdfapi/fpdf_edit | |
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/fpdfapi/fpdf_edit')
-rw-r--r-- | core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp index 0f6d973a3a..9c1c292fb7 100644 --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp @@ -1026,8 +1026,7 @@ static int InsertDeletePDFPage(CPDF_Document* pDoc, if (pKid->GetString("Type") == FX_BSTRC("Page")) { if (nPagesToGo == 0) { if (bInsert) { - pKidList->InsertAt(i, - CPDF_Reference::Create(pDoc, pPage->GetObjNum())); + pKidList->InsertAt(i, new CPDF_Reference(pDoc, pPage->GetObjNum())); pPage->SetAtReference("Parent", pDoc, pPages->GetObjNum()); } else { pKidList->RemoveAt(i); |