Index: fpdfsdk/src/fpdf_flatten.cpp |
diff --git a/fpdfsdk/src/fpdf_flatten.cpp b/fpdfsdk/src/fpdf_flatten.cpp |
index c81955d6ca4b3e77bd09d162b3171f724df55410..c59b6edc4da77db2d9863b46da5e83fc8d5e7d19 100644 |
--- a/fpdfsdk/src/fpdf_flatten.cpp |
+++ b/fpdfsdk/src/fpdf_flatten.cpp |
@@ -207,11 +207,10 @@ void SetPageContents(CFX_ByteString key, |
return; |
} |
- int iType = pContentsObj->GetType(); |
CPDF_Array* pContentsArray = NULL; |
- switch (iType) { |
- case PDFOBJ_STREAM: { |
+ switch (pContentsObj->GetType()) { |
+ case CPDF_Object::STREAM: { |
pContentsArray = new CPDF_Array; |
CPDF_Stream* pContents = pContentsObj->AsStream(); |
FX_DWORD dwObjNum = pDocument->AddIndirectObject(pContents); |
@@ -227,7 +226,7 @@ void SetPageContents(CFX_ByteString key, |
break; |
} |
- case PDFOBJ_ARRAY: { |
+ case CPDF_Object::ARRAY: { |
pContentsArray = pContentsObj->AsArray(); |
break; |
} |