summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-08-04 16:22:25 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-04 16:22:25 -0700
commit52a5005c453a9e08384e375ae51c5f1ad628fe86 (patch)
treec317c46825a23bdbbbec4e932499bf5fe40aa614 /core
parentcddf8253692d3beaa97a502c8b60c1d18f81664a (diff)
downloadpdfium-52a5005c453a9e08384e375ae51c5f1ad628fe86.tar.xz
Remove unnecessary casting in CPVT_GenerateAP.
Since CFX_BinaryBuf::GetBuffer() returns uint8_t*, casting to uint8_t* is unnecessary. Review-Url: https://codereview.chromium.org/2218633002
Diffstat (limited to 'core')
-rw-r--r--core/fpdfdoc/cpvt_generateap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfdoc/cpvt_generateap.cpp b/core/fpdfdoc/cpvt_generateap.cpp
index 6da25b61f7..f2f55b0e33 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);