From e6ce3428fce89f17e2e416adc567a401901f340b Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 27 Mar 2018 19:36:04 +0000 Subject: Simplify some XFA font manager creation 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 Commit-Queue: dsinclair --- xfa/fxfa/cxfa_fontmgr.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xfa/fxfa/cxfa_fontmgr.h') 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 GetFont(CXFA_FFDoc* hDoc, const WideStringView& wsFontFamily, uint32_t dwFontStyles); - void SetDefFontMgr(std::unique_ptr pFontMgr); private: - std::unique_ptr m_pDefFontMgr; + CFGAS_DefaultFontManager m_pDefFontMgr; std::map> m_FontMap; }; -- cgit v1.2.3