diff options
Diffstat (limited to 'core/fpdfapi/font/cpdf_cmapmanager.cpp')
-rw-r--r-- | core/fpdfapi/font/cpdf_cmapmanager.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/core/fpdfapi/font/cpdf_cmapmanager.cpp b/core/fpdfapi/font/cpdf_cmapmanager.cpp index 62a2013448..c33759cd11 100644 --- a/core/fpdfapi/font/cpdf_cmapmanager.cpp +++ b/core/fpdfapi/font/cpdf_cmapmanager.cpp @@ -16,41 +16,38 @@ CPDF_CMapManager::CPDF_CMapManager() {} CPDF_CMapManager::~CPDF_CMapManager() {} -RetainPtr<CPDF_CMap> CPDF_CMapManager::GetPredefinedCMap(const ByteString& name, - bool bPromptCJK) { +RetainPtr<CPDF_CMap> CPDF_CMapManager::GetPredefinedCMap( + const ByteString& name) { auto it = m_CMaps.find(name); if (it != m_CMaps.end()) return it->second; - RetainPtr<CPDF_CMap> pCMap = LoadPredefinedCMap(name, bPromptCJK); + RetainPtr<CPDF_CMap> pCMap = LoadPredefinedCMap(name); if (!name.IsEmpty()) m_CMaps[name] = pCMap; return pCMap; } -RetainPtr<CPDF_CMap> CPDF_CMapManager::LoadPredefinedCMap(ByteString name, - bool bPromptCJK) { +RetainPtr<CPDF_CMap> CPDF_CMapManager::LoadPredefinedCMap(ByteString name) { if (!name.IsEmpty() && name[0] == '/') name = name.Right(name.GetLength() - 1); auto pCMap = pdfium::MakeRetain<CPDF_CMap>(); - pCMap->LoadPredefined(this, name, bPromptCJK); + pCMap->LoadPredefined(this, name); return pCMap; } -CPDF_CID2UnicodeMap* CPDF_CMapManager::GetCID2UnicodeMap(CIDSet charset, - bool bPromptCJK) { +CPDF_CID2UnicodeMap* CPDF_CMapManager::GetCID2UnicodeMap(CIDSet charset) { if (!m_CID2UnicodeMaps[charset]) - m_CID2UnicodeMaps[charset] = LoadCID2UnicodeMap(charset, bPromptCJK); + m_CID2UnicodeMaps[charset] = LoadCID2UnicodeMap(charset); return m_CID2UnicodeMaps[charset].get(); } std::unique_ptr<CPDF_CID2UnicodeMap> CPDF_CMapManager::LoadCID2UnicodeMap( - CIDSet charset, - bool bPromptCJK) { + CIDSet charset) { auto pMap = pdfium::MakeUnique<CPDF_CID2UnicodeMap>(); - pMap->Load(this, charset, bPromptCJK); + pMap->Load(this, charset); return pMap; } |