diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-03-27 19:36:04 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-27 19:36:04 +0000 |
commit | e6ce3428fce89f17e2e416adc567a401901f340b (patch) | |
tree | e8341b8deb3856e0a566743671a9ff80a55ce911 /fpdfsdk/fpdfxfa | |
parent | 43a25e87afb9b91fd7c0cae2a3429da104d58988 (diff) | |
download | pdfium-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 'fpdfsdk/fpdfxfa')
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_context.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp index 79599e15dc..18f5f99b0e 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp @@ -40,7 +40,6 @@ CPDFXFA_Context::CPDFXFA_Context(std::unique_ptr<CPDF_Document> pPDFDoc) : m_pPDFDoc(std::move(pPDFDoc)), m_pXFAApp(pdfium::MakeUnique<CXFA_FFApp>(this)), m_DocEnv(this) { - m_pXFAApp->SetDefaultFontMgr(pdfium::MakeUnique<CFGAS_DefaultFontManager>()); } CPDFXFA_Context::~CPDFXFA_Context() { |