summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_textparser.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_textparser.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_textparser.cpp')
-rw-r--r--xfa/fxfa/cxfa_textparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_textparser.cpp b/xfa/fxfa/cxfa_textparser.cpp
index b74df3d14e..8981799d83 100644
--- a/xfa/fxfa/cxfa_textparser.cpp
+++ b/xfa/fxfa/cxfa_textparser.cpp
@@ -327,7 +327,7 @@ RetainPtr<CFGAS_GEFont> CXFA_TextParser::GetFont(
uint32_t dwStyle = 0;
CXFA_FontData fontData = pTextProvider->GetFontData();
if (fontData.HasValidNode()) {
- fontData.GetTypeface(wsFamily);
+ wsFamily = fontData.GetTypeface();
if (fontData.IsBold())
dwStyle |= FXFONT_BOLD;
if (fontData.IsItalic())