summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfppo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/src/fpdfppo.cpp')
-rw-r--r--fpdfsdk/src/fpdfppo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdfppo.cpp b/fpdfsdk/src/fpdfppo.cpp
index 912c4b3b3f..cc0799ef13 100644
--- a/fpdfsdk/src/fpdfppo.cpp
+++ b/fpdfsdk/src/fpdfppo.cpp
@@ -216,11 +216,11 @@ FX_BOOL CPDF_PageOrganizer::UpdateReference(CPDF_Object* pObj,
CFX_MapPtrToPtr* pMapPtrToPtr) {
switch (pObj->GetType()) {
case PDFOBJ_REFERENCE: {
- CPDF_Reference* pReference = (CPDF_Reference*)pObj;
+ CPDF_Reference* pReference = pObj->AsReference();
int newobjnum = GetNewObjId(pDoc, pMapPtrToPtr, pReference);
if (newobjnum == 0)
return FALSE;
- pReference->SetRef(pDoc, newobjnum); //, 0);
+ pReference->SetRef(pDoc, newobjnum);
break;
}
case PDFOBJ_DICTIONARY: {