From 52a5005c453a9e08384e375ae51c5f1ad628fe86 Mon Sep 17 00:00:00 2001 From: jaepark Date: Thu, 4 Aug 2016 16:22:25 -0700 Subject: 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 --- core/fpdfdoc/cpvt_generateap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core') 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(sAppStream.GetBuffer()), - sAppStream.GetSize(), FALSE, FALSE); + pNormalStream->SetData(sAppStream.GetBuffer(), sAppStream.GetSize(), FALSE, + FALSE); CPDF_Dictionary* pStreamDict = pNormalStream->GetDict(); pStreamDict->SetAtInteger("FormType", 1); -- cgit v1.2.3