From 109aa6d0f673aee11a398aae478fb758fc73a33f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 20 Sep 2018 01:21:05 +0000 Subject: Remove more unneeded STL #includes from headers. Remove some variables named "string" to avoid false positives from the linter. Change-Id: I00a53e6970451fd0cea8ab2f8178183650ca00d2 Reviewed-on: https://pdfium-review.googlesource.com/42810 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- core/fpdfapi/font/cpdf_fontglobals.h | 1 - core/fpdfapi/parser/cpdf_simple_parser.h | 2 -- core/fpdfapi/parser/cpdf_syntax_parser.cpp | 4 ++++ core/fpdfapi/parser/cpdf_syntax_parser.h | 3 +-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'core/fpdfapi') diff --git a/core/fpdfapi/font/cpdf_fontglobals.h b/core/fpdfapi/font/cpdf_fontglobals.h index d5156aae65..0e2985f312 100644 --- a/core/fpdfapi/font/cpdf_fontglobals.h +++ b/core/fpdfapi/font/cpdf_fontglobals.h @@ -9,7 +9,6 @@ #include #include -#include #include "core/fpdfapi/cmaps/cmap_int.h" #include "core/fpdfapi/font/cfx_stockfontarray.h" 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 - #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_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 #include #include @@ -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 GetObjectBody( CPDF_IndirectObjectHolder* pObjList); -- cgit v1.2.3