| Index: core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp
|
| index 65b482bf30c449aa82627b8f0bcc55a633a5c26d..717386041d31caab975d4f61e7ca7f538e6e410e 100644
|
| --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp
|
| +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp
|
| @@ -99,7 +99,7 @@ void CPDF_PageContentGenerate::ProcessImage(CFX_ByteTextBuf& buf, CPDF_ImageObje
|
| buf << "/" << PDF_NameEncode(name) << " Do Q\n";
|
| }
|
| }
|
| -void CPDF_PageContentGenerate::ProcessForm(CFX_ByteTextBuf& buf, FX_LPCBYTE data, FX_DWORD size, CFX_Matrix& matrix)
|
| +void CPDF_PageContentGenerate::ProcessForm(CFX_ByteTextBuf& buf, const uint8_t* data, FX_DWORD size, CFX_Matrix& matrix)
|
| {
|
| if (!data || !size) {
|
| return;
|
| @@ -111,7 +111,7 @@ void CPDF_PageContentGenerate::ProcessForm(CFX_ByteTextBuf& buf, FX_LPCBYTE data
|
| CFX_FloatRect bbox = m_pPage->GetPageBBox();
|
| matrix.TransformRect(bbox);
|
| pFormDict->SetAtRect(FX_BSTR("BBox"), bbox);
|
| - pStream->InitStream((FX_LPBYTE)data, size, pFormDict);
|
| + pStream->InitStream((uint8_t*)data, size, pFormDict);
|
| buf << "q " << matrix << " cm ";
|
| CFX_ByteString name = RealizeResource(pStream, "XObject");
|
| buf << "/" << PDF_NameEncode(name) << " Do Q\n";
|
| @@ -142,7 +142,7 @@ void CPDF_PageContentGenerate::TransformContent(CFX_Matrix& matrix)
|
| size += pContentArray[i]->GetSize() + 1;
|
| }
|
| int pos = 0;
|
| - FX_LPBYTE pBuf = FX_Alloc(uint8_t, size);
|
| + uint8_t* pBuf = FX_Alloc(uint8_t, size);
|
| for (i = 0; i < iCount; ++i) {
|
| FXSYS_memcpy32(pBuf + pos, pContentArray[i]->GetData(), pContentArray[i]->GetSize());
|
| pos += pContentArray[i]->GetSize() + 1;
|
|
|