Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1272)

Unified Diff: xfa/fwl/basewidget/fwl_barcodeimp.cpp

Issue 2033243004: Make GetDevFont() return a CFX_Font* instead of void* (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: One more file. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fgas/font/fgas_stdfontmgr.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/basewidget/fwl_barcodeimp.cpp
diff --git a/xfa/fwl/basewidget/fwl_barcodeimp.cpp b/xfa/fwl/basewidget/fwl_barcodeimp.cpp
index f780a220024e21404aff56d0246eeb691caeb454..1c55f5a9f01cb660bc68d4190c862fbfa2b4ee12 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);
}
« no previous file with comments | « xfa/fgas/font/fgas_stdfontmgr.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698