diff options
author | tsepez <tsepez@chromium.org> | 2016-11-30 15:10:55 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-30 15:10:55 -0800 |
commit | 345d489b70a8e057587512524e69bd5692e2e14b (patch) | |
tree | 01a34c53a991ef069b503bed1b8d1845510cfe04 /xfa/fgas/font | |
parent | 47718fbaf24000877aff58d9512b9b1dea0af818 (diff) | |
download | pdfium-345d489b70a8e057587512524e69bd5692e2e14b.tar.xz |
Convert loose FX_Create* functions into static methods
Also remove a bool that is always false.
Review-Url: https://codereview.chromium.org/2539203002
Diffstat (limited to 'xfa/fgas/font')
-rw-r--r-- | xfa/fgas/font/cfgas_fontmgr.cpp | 2 | ||||
-rw-r--r-- | xfa/fgas/font/cfgas_gefont.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fgas/font/cfgas_fontmgr.cpp b/xfa/fgas/font/cfgas_fontmgr.cpp index 9b95318bd0..219e67dbc6 100644 --- a/xfa/fgas/font/cfgas_fontmgr.cpp +++ b/xfa/fgas/font/cfgas_fontmgr.cpp @@ -909,7 +909,7 @@ IFX_SeekableReadStream* CFGAS_FontMgr::CreateFontStream( uint8_t* pBuffer = FX_Alloc(uint8_t, dwFileSize + 1); dwFileSize = pSystemFontInfo->GetFontData(hFont, 0, pBuffer, dwFileSize); - return FX_CreateMemoryStream(pBuffer, dwFileSize, true); + return IFX_MemoryStream::Create(pBuffer, dwFileSize, true); } IFX_SeekableReadStream* CFGAS_FontMgr::CreateFontStream( diff --git a/xfa/fgas/font/cfgas_gefont.cpp b/xfa/fgas/font/cfgas_gefont.cpp index ffe791aab5..c1dfa2b5b9 100644 --- a/xfa/fgas/font/cfgas_gefont.cpp +++ b/xfa/fgas/font/cfgas_gefont.cpp @@ -209,7 +209,7 @@ bool CFGAS_GEFont::LoadFontInternal(IFX_Stream* pFontStream, bool bSaveStream) { if (bSaveStream) m_pStream.reset(pFontStream); - m_pFileRead.reset(FX_CreateFileRead(pFontStream, false)); + m_pFileRead.reset(pFontStream->MakeSeekableReadStream()); m_pFont = new CFX_Font; if (m_pFont->LoadFile(m_pFileRead.get())) return InitFont(); |