diff options
author | dsinclair <dsinclair@chromium.org> | 2016-07-18 13:14:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-18 13:14:49 -0700 |
commit | 34965459f4f53a77f6c925292304eface57d12c6 (patch) | |
tree | 788cb62af316f8b5c5d520583eaa0313dd48144e /xfa/fgas/font/fgas_gefont.cpp | |
parent | aae4566ee8b2eaffb182861047c466ed1ec04902 (diff) | |
download | pdfium-34965459f4f53a77f6c925292304eface57d12c6.tar.xz |
Cleanup fgas/crt.
This CL removes unused methods and default parameters from the fgas/crt code.
Review-Url: https://codereview.chromium.org/2162503003
Diffstat (limited to 'xfa/fgas/font/fgas_gefont.cpp')
-rw-r--r-- | xfa/fgas/font/fgas_gefont.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fgas/font/fgas_gefont.cpp b/xfa/fgas/font/fgas_gefont.cpp index a7d8c49cbf..576f482df2 100644 --- a/xfa/fgas/font/fgas_gefont.cpp +++ b/xfa/fgas/font/fgas_gefont.cpp @@ -219,7 +219,7 @@ FX_BOOL CFGAS_GEFont::LoadFontInternal(IFX_Stream* pFontStream, if (bSaveStream) { m_pStream = pFontStream; } - m_pFileRead = FX_CreateFileRead(pFontStream); + m_pFileRead = FX_CreateFileRead(pFontStream, FALSE); m_pFont = new CFX_Font; FX_BOOL bRet = m_pFont->LoadFile(m_pFileRead); if (bRet) { @@ -250,7 +250,7 @@ FX_BOOL CFGAS_GEFont::InitFont() { return FALSE; } if (!m_pCharWidthMap) - m_pCharWidthMap = new CFX_WordDiscreteArray(1024); + m_pCharWidthMap = new CFX_DiscreteArrayTemplate<uint16_t>(1024); if (!m_pRectArray) m_pRectArray = new CFX_MassArrayTemplate<CFX_Rect>(16); if (!m_pBBoxMap) @@ -473,7 +473,7 @@ void CFGAS_GEFont::Reset() { m_pBBoxMap->RemoveAll(); } if (m_pRectArray) { - m_pRectArray->RemoveAll(); + m_pRectArray->RemoveAll(FALSE); } } CFGAS_GEFont* CFGAS_GEFont::GetSubstFont(int32_t iGlyphIndex) const { |