diff options
Diffstat (limited to 'core/fpdfapi/page/cpdf_streamcontentparser.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_streamcontentparser.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.h b/core/fpdfapi/page/cpdf_streamcontentparser.h index 5dcfbe5308..ff80ae9ef1 100644 --- a/core/fpdfapi/page/cpdf_streamcontentparser.h +++ b/core/fpdfapi/page/cpdf_streamcontentparser.h @@ -90,9 +90,11 @@ class CPDF_StreamContentParser { int GetNextParamPos(); void ClearAllParams(); CPDF_Object* GetObject(uint32_t index); - ByteString GetString(uint32_t index); - float GetNumber(uint32_t index); - int GetInteger(uint32_t index) { return (int32_t)(GetNumber(index)); } + ByteString GetString(uint32_t index) const; + float GetNumber(uint32_t index) const; + int GetInteger(uint32_t index) const { + return static_cast<int>(GetNumber(index)); + } void OnOperator(const ByteStringView& op); void AddTextObject(ByteString* pText, float fInitKerning, |