summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_widgetacc.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-21 21:51:40 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-21 21:51:40 +0000
commitf9958ed00c5f288d95ab4c6c1d90fc639d5c0f8d (patch)
tree8bc55fb63db3080b3f59bdc8ee95414a5d957649 /xfa/fxfa/cxfa_widgetacc.cpp
parent7c986a085631639d38076918e0df719d11f40e59 (diff)
downloadpdfium-f9958ed00c5f288d95ab4c6c1d90fc639d5c0f8d.tar.xz
Cleanup CXFA_FontData
This CL makes the various methods const and removes out params from CXFA_FontData. Change-Id: I85268906a2454c23b73d5724c2556758246791cb Reviewed-on: https://pdfium-review.googlesource.com/18970 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_widgetacc.cpp')
-rw-r--r--xfa/fxfa/cxfa_widgetacc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_widgetacc.cpp b/xfa/fxfa/cxfa_widgetacc.cpp
index 1f804e6ed2..5bff539366 100644
--- a/xfa/fxfa/cxfa_widgetacc.cpp
+++ b/xfa/fxfa/cxfa_widgetacc.cpp
@@ -1493,7 +1493,8 @@ RetainPtr<CFGAS_GEFont> CXFA_WidgetAcc::GetFDEFont() {
dwFontStyle |= FXFONT_BOLD;
if (fontData.IsItalic())
dwFontStyle |= FXFONT_ITALIC;
- fontData.GetTypeface(wsFontName);
+
+ wsFontName = fontData.GetTypeface();
}
auto* pDoc = GetDoc();