diff options
author | tsepez <tsepez@chromium.org> | 2016-03-25 14:52:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-25 14:52:28 -0700 |
commit | c3255f55954b2adc3edbd3269c0a8779f7d4b7ad (patch) | |
tree | 802c0e9158e14f1e67ad181089739a176e8fba24 /fpdfsdk/fpdf_flatten.cpp | |
parent | deee3d2ee201d62e7ef41e7d8378d7f52e057a9c (diff) | |
download | pdfium-c3255f55954b2adc3edbd3269c0a8779f7d4b7ad.tar.xz |
Remove FX_DWORD from fpdfsdk/ and testing
BUG=
Review URL: https://codereview.chromium.org/1835693002
Diffstat (limited to 'fpdfsdk/fpdf_flatten.cpp')
-rw-r--r-- | fpdfsdk/fpdf_flatten.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/fpdf_flatten.cpp b/fpdfsdk/fpdf_flatten.cpp index 3ad7c6ed38..c2ecbc84a6 100644 --- a/fpdfsdk/fpdf_flatten.cpp +++ b/fpdfsdk/fpdf_flatten.cpp @@ -94,7 +94,7 @@ int ParserAnnots(CPDF_Document* pSourceDoc, if (!pAnnots) return FLATTEN_NOTHINGTODO; - FX_DWORD dwSize = pAnnots->GetCount(); + uint32_t dwSize = pAnnots->GetCount(); for (int i = 0; i < (int)dwSize; i++) { CPDF_Dictionary* pAnnotDic = ToDictionary(pAnnots->GetElementValue(i)); if (!pAnnotDic) @@ -213,7 +213,7 @@ void SetPageContents(CFX_ByteString key, case CPDF_Object::STREAM: { pContentsArray = new CPDF_Array; CPDF_Stream* pContents = pContentsObj->AsStream(); - FX_DWORD dwObjNum = pDocument->AddIndirectObject(pContents); + uint32_t dwObjNum = pDocument->AddIndirectObject(pContents); CPDF_StreamAcc acc; acc.LoadAllData(pContents); CFX_ByteString sStream = "q\n"; @@ -237,7 +237,7 @@ void SetPageContents(CFX_ByteString key, if (!pContentsArray) return; - FX_DWORD dwObjNum = pDocument->AddIndirectObject(pContentsArray); + uint32_t dwObjNum = pDocument->AddIndirectObject(pContentsArray); pPage->SetAtReference("Contents", pDocument, dwObjNum); if (!key.IsEmpty()) { @@ -380,7 +380,7 @@ DLLEXPORT int STDCALL FPDFPage_Flatten(FPDF_PAGE page, int nFlag) { } CPDF_Stream* pNewXObject = new CPDF_Stream(NULL, 0, new CPDF_Dictionary); - FX_DWORD dwObjNum = pDocument->AddIndirectObject(pNewXObject); + uint32_t dwObjNum = pDocument->AddIndirectObject(pNewXObject); CPDF_Dictionary* pPageXObject = pRes->GetDictBy("XObject"); if (!pPageXObject) { pPageXObject = new CPDF_Dictionary; @@ -486,7 +486,7 @@ DLLEXPORT int STDCALL FPDFPage_Flatten(FPDF_PAGE page, int nFlag) { CFX_ByteString sFormName; sFormName.Format("F%d", i); - FX_DWORD dwObjNum = pDocument->AddIndirectObject(pObj); + uint32_t dwObjNum = pDocument->AddIndirectObject(pObj); pXObject->SetAtReference(sFormName, pDocument, dwObjNum); CPDF_StreamAcc acc; |