diff options
author | jaepark <jaepark@google.com> | 2016-08-04 16:22:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-04 16:22:25 -0700 |
commit | 52a5005c453a9e08384e375ae51c5f1ad628fe86 (patch) | |
tree | c317c46825a23bdbbbec4e932499bf5fe40aa614 | |
parent | cddf8253692d3beaa97a502c8b60c1d18f81664a (diff) | |
download | pdfium-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
-rw-r--r-- | core/fpdfdoc/cpvt_generateap.cpp | 8 |
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); |