summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_fontmgr.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-03-27 19:36:04 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-27 19:36:04 +0000
commite6ce3428fce89f17e2e416adc567a401901f340b (patch)
treee8341b8deb3856e0a566743671a9ff80a55ce911 /xfa/fxfa/cxfa_fontmgr.h
parent43a25e87afb9b91fd7c0cae2a3429da104d58988 (diff)
downloadpdfium-e6ce3428fce89f17e2e416adc567a401901f340b.tar.xz
Simplify some XFA font manager creationchromium/3382
For the cases where we always initialize the font managers, do it in the constructor instead of as a secondary call. Change-Id: Ic59b331d1eb357878cd5786b187b5b79bace4498 Reviewed-on: https://pdfium-review.googlesource.com/29291 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_fontmgr.h')
-rw-r--r--xfa/fxfa/cxfa_fontmgr.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_fontmgr.h b/xfa/fxfa/cxfa_fontmgr.h
index a940fafc46..7d067bddb6 100644
--- a/xfa/fxfa/cxfa_fontmgr.h
+++ b/xfa/fxfa/cxfa_fontmgr.h
@@ -29,10 +29,9 @@ class CXFA_FontMgr {
RetainPtr<CFGAS_GEFont> GetFont(CXFA_FFDoc* hDoc,
const WideStringView& wsFontFamily,
uint32_t dwFontStyles);
- void SetDefFontMgr(std::unique_ptr<CFGAS_DefaultFontManager> pFontMgr);
private:
- std::unique_ptr<CFGAS_DefaultFontManager> m_pDefFontMgr;
+ CFGAS_DefaultFontManager m_pDefFontMgr;
std::map<ByteString, RetainPtr<CFGAS_GEFont>> m_FontMap;
};