summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-06-07 06:41:50 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-07 06:41:50 -0700
commit596fc4c034b70e7826d4781432e4b657921f1abc (patch)
treefa25fbb04a560766b082aa78f1ae6779134cfcba /core/fpdfapi/fpdf_edit
parentb0fcfad1412c2ddaf33c74fa4b854c3c1390a509 (diff)
downloadpdfium-596fc4c034b70e7826d4781432e4b657921f1abc.tar.xz
Add missing const to CPDF_Stream::InitStream()
Review-Url: https://codereview.chromium.org/2044453003
Diffstat (limited to 'core/fpdfapi/fpdf_edit')
-rw-r--r--core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp b/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp
index 08bdb5bb07..2907ebe71c 100644
--- a/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp
+++ b/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp
@@ -115,7 +115,7 @@ void CPDF_PageContentGenerator::ProcessForm(CFX_ByteTextBuf& buf,
CFX_FloatRect bbox = m_pPage->GetPageBBox();
matrix.TransformRect(bbox);
pFormDict->SetAtRect("BBox", bbox);
- pStream->InitStream((uint8_t*)data, size, pFormDict);
+ pStream->InitStream(data, size, pFormDict);
buf << "q " << matrix << " cm ";
CFX_ByteString name = RealizeResource(pStream, "XObject");
buf << "/" << PDF_NameEncode(name) << " Do Q\n";