summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-25 22:12:34 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-25 22:12:34 +0000
commit9b8b217e6f8f2ff03b09d6075e689804928c7b3c (patch)
tree37f19ed798112f86674be18de6ba76b0d73fded1 /core/fpdfapi
parentecc1b271aba7d785426b4488dde754e5ce5e4313 (diff)
downloadpdfium-9b8b217e6f8f2ff03b09d6075e689804928c7b3c.tar.xz
Replace reinterpret_cast with static_cast where possible
Change-Id: Ic62f1def8e043494c9fa6c08a937d7d872513567 Reviewed-on: https://pdfium-review.googlesource.com/31314 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/parser/cpdf_crypto_handler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_crypto_handler.cpp b/core/fpdfapi/parser/cpdf_crypto_handler.cpp
index c27f9dc9fc..76be23e9d6 100644
--- a/core/fpdfapi/parser/cpdf_crypto_handler.cpp
+++ b/core/fpdfapi/parser/cpdf_crypto_handler.cpp
@@ -180,11 +180,11 @@ bool CPDF_CryptoHandler::CryptStream(void* context,
if (m_Cipher == FXCIPHER_RC4) {
int old_size = dest_buf.GetSize();
dest_buf.AppendBlock(src_buf, src_size);
- CRYPT_ArcFourCrypt(reinterpret_cast<CRYPT_rc4_context*>(context),
+ CRYPT_ArcFourCrypt(static_cast<CRYPT_rc4_context*>(context),
dest_buf.GetBuffer() + old_size, src_size);
return true;
}
- AESCryptContext* pContext = reinterpret_cast<AESCryptContext*>(context);
+ AESCryptContext* pContext = static_cast<AESCryptContext*>(context);
if (pContext->m_bIV && bEncrypt) {
dest_buf.AppendBlock(pContext->m_Block, 16);
pContext->m_bIV = false;