diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-10-04 13:25:01 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-04 17:48:24 +0000 |
commit | 0181a84160e754717ebd26290628220f998ff66f (patch) | |
tree | 141b38e15a0b2f0c71ba612ebdf82be32f94596e /core/fpdfapi/font/cpdf_cid2unicodemap.cpp | |
parent | 6ed297c5b418f8c9435b656b565cf48e6dcc2836 (diff) | |
download | pdfium-0181a84160e754717ebd26290628220f998ff66f.tar.xz |
Make CPDF_FontGlobals members private
This CL makes the embedded maps and the cmap manager private to
CPDF_FontGlobals and adds accessor methods as needed.
Change-Id: I50350fcfad5428defe5e68d9d3b29e8961e66e9f
Reviewed-on: https://pdfium-review.googlesource.com/15412
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/font/cpdf_cid2unicodemap.cpp')
-rw-r--r-- | core/fpdfapi/font/cpdf_cid2unicodemap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/font/cpdf_cid2unicodemap.cpp b/core/fpdfapi/font/cpdf_cid2unicodemap.cpp index cb378aa9d6..650856419a 100644 --- a/core/fpdfapi/font/cpdf_cid2unicodemap.cpp +++ b/core/fpdfapi/font/cpdf_cid2unicodemap.cpp @@ -37,6 +37,6 @@ void CPDF_CID2UnicodeMap::Load(CPDF_CMapManager* pMgr, CPDF_FontGlobals* pFontGlobals = CPDF_ModuleMgr::Get()->GetPageModule()->GetFontGlobals(); - m_pEmbeddedMap = pFontGlobals->m_EmbeddedToUnicodes[charset].m_pMap; - m_EmbeddedCount = pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count; + std::tie(m_EmbeddedCount, m_pEmbeddedMap) = + pFontGlobals->GetEmbeddedToUnicode(charset); } |