diff options
author | thestig <thestig@chromium.org> | 2016-06-20 10:38:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-20 10:38:52 -0700 |
commit | ec51ac3e4dfa8ee1da3d581b40f0b35af4563c9e (patch) | |
tree | 856b76dfb372807aaa984acedecff66984ec84b0 /fpdfsdk | |
parent | 54d027dbbff8a0270531855082e4f61cb457c173 (diff) | |
download | pdfium-ec51ac3e4dfa8ee1da3d581b40f0b35af4563c9e.tar.xz |
Another round of fx_ge cleanup.
- Clean up CFX_GEModule.
- Remove duplicate #defines in fx_ge.h
- Remove IsFontStyleFromCharCode() that always returns true.
- Mark a FXTEXT_CHARPOS field as Mac only.
Review-Url: https://codereview.chromium.org/2075333002
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdfview.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index 43ca3183f9..6521eb854a 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -262,9 +262,7 @@ DLLEXPORT void STDCALL FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* cfg) { g_pCodecModule = new CCodec_ModuleMgr(); - CFX_GEModule::Create(cfg ? cfg->m_pUserFontPaths : nullptr); - CFX_GEModule::Get()->SetCodecModule(g_pCodecModule); - + CFX_GEModule::Create(cfg ? cfg->m_pUserFontPaths : nullptr, g_pCodecModule); CPDF_ModuleMgr::Create(); CPDF_ModuleMgr* pModuleMgr = CPDF_ModuleMgr::Get(); pModuleMgr->SetCodecModule(g_pCodecModule); |