diff options
author | tsepez <tsepez@chromium.org> | 2016-06-08 14:17:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-08 14:17:24 -0700 |
commit | 6aac8a822ef227b80173f23ea3169b28a6712bba (patch) | |
tree | cbc58444ac269f977e935740aee2dafab9c9c6ee /core/fpdfdoc/doc_utils.cpp | |
parent | c1835615f386d8e6e30df89b6517ebf605335a0e (diff) | |
download | pdfium-6aac8a822ef227b80173f23ea3169b28a6712bba.tar.xz |
Remove even more const casting from core.
Make the return types/arguments match reality.
Review-Url: https://codereview.chromium.org/2053483002
Diffstat (limited to 'core/fpdfdoc/doc_utils.cpp')
-rw-r--r-- | core/fpdfdoc/doc_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfdoc/doc_utils.cpp b/core/fpdfdoc/doc_utils.cpp index 05197380a6..ccef7feb57 100644 --- a/core/fpdfdoc/doc_utils.cpp +++ b/core/fpdfdoc/doc_utils.cpp @@ -467,7 +467,7 @@ CPDF_Font* GetNativeInterFormFont(CPDF_Dictionary* pFormDict, if (!pFind) { continue; } - CFX_SubstFont* pSubst = (CFX_SubstFont*)pFind->GetSubstFont(); + CFX_SubstFont* pSubst = pFind->GetSubstFont(); if (!pSubst) { continue; } @@ -486,7 +486,7 @@ CPDF_Font* GetNativeInterFormFont(CPDF_Dictionary* pFormDict, CFX_SubstFont* pSubst; CPDF_Font* pFont = GetDefaultInterFormFont(pFormDict, pDocument); if (pFont) { - pSubst = (CFX_SubstFont*)pFont->GetSubstFont(); + pSubst = pFont->GetSubstFont(); if (pSubst && pSubst->m_Charset == (int)charSet) { FindInterFormFont(pFormDict, pFont, csNameTag); return pFont; |