From 48ddd86c45b437151d660758befbebec242d407d Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 6 Jun 2016 10:51:58 -0700 Subject: Make GetDevFont() return a CFX_Font* instead of void* Then we can remove a bunch of casts. Review-Url: https://codereview.chromium.org/2033243004 --- xfa/fwl/basewidget/fwl_barcodeimp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xfa/fwl/basewidget') diff --git a/xfa/fwl/basewidget/fwl_barcodeimp.cpp b/xfa/fwl/basewidget/fwl_barcodeimp.cpp index f780a22002..1c55f5a9f0 100644 --- a/xfa/fwl/basewidget/fwl_barcodeimp.cpp +++ b/xfa/fwl/basewidget/fwl_barcodeimp.cpp @@ -113,8 +113,7 @@ void CFWL_BarcodeImp::GenerateBarcodeImageCache() { IFWL_ThemeProvider* pTheme = GetAvailableTheme(); IFGAS_Font* pFont = static_cast( pTheme->GetCapacity(&part, CFWL_WidgetCapacity::Font)); - CFX_Font* pCXFont = - pFont ? static_cast(pFont->GetDevFont()) : nullptr; + CFX_Font* pCXFont = pFont ? pFont->GetDevFont() : nullptr; if (pCXFont) { m_pBarcodeEngine->SetFont(pCXFont); } -- cgit v1.2.3