From 1aff265f7a210738fc817675c4391f8fe240b81d Mon Sep 17 00:00:00 2001 From: tsepez Date: Tue, 22 Nov 2016 10:45:59 -0800 Subject: Continue splitting pageint.h into per-class files Add cpdf_streamparser.h and cpdf_contentparser.h since there are already corresponding .cpp files with the same name. Review-Url: https://codereview.chromium.org/2521123003 --- core/fpdfapi/font/cpdf_type3font.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/fpdfapi/font') diff --git a/core/fpdfapi/font/cpdf_type3font.cpp b/core/fpdfapi/font/cpdf_type3font.cpp index e79f16a001..8a0a115992 100644 --- a/core/fpdfapi/font/cpdf_type3font.cpp +++ b/core/fpdfapi/font/cpdf_type3font.cpp @@ -17,6 +17,8 @@ #include "core/fxcrt/fx_system.h" #include "third_party/base/stl_util.h" +#define FPDF_MAX_TYPE3_FORM_LEVEL 4 + CPDF_Type3Font::CPDF_Type3Font() : m_pCharProcs(nullptr), m_pPageResources(nullptr), @@ -90,7 +92,7 @@ void CPDF_Type3Font::CheckType3FontMetrics() { } CPDF_Type3Char* CPDF_Type3Font::LoadChar(uint32_t charcode) { - if (m_CharLoadingDepth >= _FPDF_MAX_TYPE3_FORM_LEVEL_) + if (m_CharLoadingDepth >= FPDF_MAX_TYPE3_FORM_LEVEL) return nullptr; auto it = m_CacheMap.find(charcode); -- cgit v1.2.3