Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2777)

Unified Diff: core/fpdfdoc/cpvt_generateap.cpp

Issue 2218633002: Remove unnecessary casting in CPVT_GenerateAP. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfdoc/cpvt_generateap.cpp
diff --git a/core/fpdfdoc/cpvt_generateap.cpp b/core/fpdfdoc/cpvt_generateap.cpp
index 6da25b61f7ab8131212680778215409c0ca4d28b..f2f55b0e33db8c40dacd9846ab03416e67b5f37b 100644
--- a/core/fpdfdoc/cpvt_generateap.cpp
+++ b/core/fpdfdoc/cpvt_generateap.cpp
@@ -428,8 +428,8 @@ bool GenerateWidgetAP(CPDF_Document* pDoc,
} break;
}
if (pNormalStream) {
- pNormalStream->SetData((uint8_t*)sAppStream.GetBuffer(),
- sAppStream.GetSize(), FALSE, FALSE);
+ pNormalStream->SetData(sAppStream.GetBuffer(), sAppStream.GetSize(), FALSE,
+ FALSE);
pStreamDict = pNormalStream->GetDict();
if (pStreamDict) {
pStreamDict->SetAtMatrix("Matrix", matrix);
@@ -494,8 +494,8 @@ void GenerateAndSetAPDict(CPDF_Document* pDoc,
int32_t objnum = pDoc->AddIndirectObject(pNormalStream);
pAnnotDict->GetDictBy("AP")->SetAtReference("N", pDoc, objnum);
- pNormalStream->SetData(reinterpret_cast<uint8_t*>(sAppStream.GetBuffer()),
- sAppStream.GetSize(), FALSE, FALSE);
+ pNormalStream->SetData(sAppStream.GetBuffer(), sAppStream.GetSize(), FALSE,
+ FALSE);
CPDF_Dictionary* pStreamDict = pNormalStream->GetDict();
pStreamDict->SetAtInteger("FormType", 1);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698