diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-11 05:37:27 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-11 05:37:27 +0000 |
commit | 3b76669371e54011d8a035122a1af0f0673597ab (patch) | |
tree | d5c115f659bcee8e71c5ceaa50e9ff3c4b220da0 /core/fpdfapi/font/cpdf_simplefont.h | |
parent | 6fdfe387645217cdd77e8e4230a0d8348d831e31 (diff) | |
download | pdfium-3b76669371e54011d8a035122a1af0f0673597ab.tar.xz |
Simplify CPDF_SimpleFont::LoadPDFEncoding().
Remove parameters that always refer to the same member variables. Also
mark the input object as const since it is only read from.
Change-Id: I136ece1ce5b0c00b02d1a76e1540ff26e6f01858
Reviewed-on: https://pdfium-review.googlesource.com/39494
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core/fpdfapi/font/cpdf_simplefont.h')
-rw-r--r-- | core/fpdfapi/font/cpdf_simplefont.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/fpdfapi/font/cpdf_simplefont.h b/core/fpdfapi/font/cpdf_simplefont.h index 659ad0fa68..4c813a280e 100644 --- a/core/fpdfapi/font/cpdf_simplefont.h +++ b/core/fpdfapi/font/cpdf_simplefont.h @@ -37,11 +37,7 @@ class CPDF_SimpleFont : public CPDF_Font { bool LoadCommon(); void LoadSubstFont(); void LoadCharMetrics(int charcode); - void LoadPDFEncoding(CPDF_Object* pEncoding, - int& iBaseEncoding, - std::vector<ByteString>* pCharNames, - bool bEmbedded, - bool bTrueType); + void LoadPDFEncoding(bool bEmbedded, bool bTrueType); CPDF_FontEncoding m_Encoding; int m_BaseEncoding = PDFFONT_ENCODING_BUILTIN; |