diff options
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cpdf_simple_parser.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_syntax_parser.cpp | 4 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_syntax_parser.h | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/core/fpdfapi/parser/cpdf_simple_parser.h b/core/fpdfapi/parser/cpdf_simple_parser.h index c8dae23ba6..f9461b644c 100644 --- a/core/fpdfapi/parser/cpdf_simple_parser.h +++ b/core/fpdfapi/parser/cpdf_simple_parser.h @@ -7,8 +7,6 @@ #ifndef CORE_FPDFAPI_PARSER_CPDF_SIMPLE_PARSER_H_ #define CORE_FPDFAPI_PARSER_CPDF_SIMPLE_PARSER_H_ -#include <utility> - #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" #include "third_party/base/span.h" diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.cpp b/core/fpdfapi/parser/cpdf_syntax_parser.cpp index cc83fa091a..45e0f1730b 100644 --- a/core/fpdfapi/parser/cpdf_syntax_parser.cpp +++ b/core/fpdfapi/parser/cpdf_syntax_parser.cpp @@ -403,6 +403,10 @@ ByteString CPDF_SyntaxParser::GetKeyword() { return GetNextWord(nullptr); } +void CPDF_SyntaxParser::SetPos(FX_FILESIZE pos) { + m_Pos = std::min(pos, m_FileLen); +} + std::unique_ptr<CPDF_Object> CPDF_SyntaxParser::GetObjectBody( CPDF_IndirectObjectHolder* pObjList) { const CPDF_ReadValidator::Session read_session(GetValidator().Get()); diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.h b/core/fpdfapi/parser/cpdf_syntax_parser.h index 92f28d9874..6e6b98c068 100644 --- a/core/fpdfapi/parser/cpdf_syntax_parser.h +++ b/core/fpdfapi/parser/cpdf_syntax_parser.h @@ -7,7 +7,6 @@ #ifndef CORE_FPDFAPI_PARSER_CPDF_SYNTAX_PARSER_H_ #define CORE_FPDFAPI_PARSER_CPDF_SYNTAX_PARSER_H_ -#include <algorithm> #include <memory> #include <vector> @@ -42,7 +41,7 @@ class CPDF_SyntaxParser { } FX_FILESIZE GetPos() const { return m_Pos; } - void SetPos(FX_FILESIZE pos) { m_Pos = std::min(pos, m_FileLen); } + void SetPos(FX_FILESIZE pos); std::unique_ptr<CPDF_Object> GetObjectBody( CPDF_IndirectObjectHolder* pObjList); |