summaryrefslogtreecommitdiff
path: root/xfa/fwl/basewidget/fwl_barcodeimp.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-06-06 10:51:58 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-06 10:51:58 -0700
commit48ddd86c45b437151d660758befbebec242d407d (patch)
treea61201d16145b605c3e3fbf5f951be6b5ff2db1a /xfa/fwl/basewidget/fwl_barcodeimp.cpp
parent884b4f942d510974e713361b84a717340eb928b9 (diff)
downloadpdfium-48ddd86c45b437151d660758befbebec242d407d.tar.xz
Make GetDevFont() return a CFX_Font* instead of void*
Then we can remove a bunch of casts. Review-Url: https://codereview.chromium.org/2033243004
Diffstat (limited to 'xfa/fwl/basewidget/fwl_barcodeimp.cpp')
-rw-r--r--xfa/fwl/basewidget/fwl_barcodeimp.cpp3
1 files changed, 1 insertions, 2 deletions
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<IFGAS_Font*>(
pTheme->GetCapacity(&part, CFWL_WidgetCapacity::Font));
- CFX_Font* pCXFont =
- pFont ? static_cast<CFX_Font*>(pFont->GetDevFont()) : nullptr;
+ CFX_Font* pCXFont = pFont ? pFont->GetDevFont() : nullptr;
if (pCXFont) {
m_pBarcodeEngine->SetFont(pCXFont);
}