diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-14 18:34:26 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-14 18:34:26 +0000 |
commit | 87fdbc371e023be8aa996e5aa5485524818c8a07 (patch) | |
tree | 2c6b0ba0096f1a8f62549129c6453fe3a1c9145f /core/fpdfapi/font/cpdf_type1font.h | |
parent | 88798cff29934b58e0a8d81e94005472d612b964 (diff) | |
download | pdfium-87fdbc371e023be8aa996e5aa5485524818c8a07.tar.xz |
Add CPDF_Type1Font::IsBase14Font() to replace GetBase14Font().
IsBase14Font() is what its only caller really needs. Also use it in
Load() which does the same check, and restructure Load() to have an
early return.
Change-Id: I1d051d10b80aa82bcf590c79169ffe29607b3c13
Reviewed-on: https://pdfium-review.googlesource.com/39970
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core/fpdfapi/font/cpdf_type1font.h')
-rw-r--r-- | core/fpdfapi/font/cpdf_type1font.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/font/cpdf_type1font.h b/core/fpdfapi/font/cpdf_type1font.h index eaabaaeb88..cbcb9af3b1 100644 --- a/core/fpdfapi/font/cpdf_type1font.h +++ b/core/fpdfapi/font/cpdf_type1font.h @@ -23,7 +23,7 @@ class CPDF_Type1Font : public CPDF_SimpleFont { int GlyphFromCharCodeExt(uint32_t charcode) override; #endif - int GetBase14Font() const { return m_Base14Font; } + bool IsBase14Font() const { return m_Base14Font >= 0; } private: // CPDF_Font: |