From 6aac8a822ef227b80173f23ea3169b28a6712bba Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 8 Jun 2016 14:17:24 -0700 Subject: Remove even more const casting from core. Make the return types/arguments match reality. Review-Url: https://codereview.chromium.org/2053483002 --- core/fpdfdoc/doc_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfdoc/doc_utils.cpp') 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; -- cgit v1.2.3