diff options
author | Lei Zhang <thestig@chromium.org> | 2018-09-15 04:31:10 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-15 04:31:10 +0000 |
commit | 649bc02a2e2ab886733d7461ece89b4153a01d5f (patch) | |
tree | d9c5afedf1dc7267cc1d52bf3b53c32e25b424a1 /core/fxge/cfx_unicodeencodingex.cpp | |
parent | 0a815ae46f53330b69c585c708a4ebc5b85ecdb4 (diff) | |
download | pdfium-649bc02a2e2ab886733d7461ece89b4153a01d5f.tar.xz |
Remove FXFM_ENCODING_NONE.
FX_CreateFontEncodingEx() always passes FXFM_ENCODING_NONE. Just get rid
of it instead.
Change-Id: I417f84d8ae2f10ba874265a92576d3ef8481a9d6
Reviewed-on: https://pdfium-review.googlesource.com/42460
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/cfx_unicodeencodingex.cpp')
-rw-r--r-- | core/fxge/cfx_unicodeencodingex.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/fxge/cfx_unicodeencodingex.cpp b/core/fxge/cfx_unicodeencodingex.cpp index a8db745612..2f5eaf7aa8 100644 --- a/core/fxge/cfx_unicodeencodingex.cpp +++ b/core/fxge/cfx_unicodeencodingex.cpp @@ -85,14 +85,10 @@ uint32_t CFX_UnicodeEncodingEx::CharCodeFromUnicode(wchar_t Unicode) const { } std::unique_ptr<CFX_UnicodeEncodingEx> FX_CreateFontEncodingEx( - CFX_Font* pFont, - uint32_t nEncodingID) { + CFX_Font* pFont) { if (!pFont || !pFont->GetFace()) return nullptr; - if (nEncodingID != FXFM_ENCODING_NONE) - return FXFM_CreateFontEncoding(pFont, nEncodingID); - for (uint32_t id : g_EncodingID) { auto pFontEncoding = FXFM_CreateFontEncoding(pFont, id); if (pFontEncoding) |