diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-13 10:42:41 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-13 19:49:21 +0000 |
commit | a119340ec92412d07e60654b2b22a5a5bea979b0 (patch) | |
tree | 8e2982d9a6f250a29fcd964a9bdf983ea410b89f | |
parent | 36c5b170e722362d4b5f7cb6e4e0099ed227a307 (diff) | |
download | pdfium-a119340ec92412d07e60654b2b22a5a5bea979b0.tar.xz |
Move another opertator<<() prototype into correct .h file.
Prototype should be in header for .cpp file actually
implementing it.
Change-Id: I8f771a4840e09da419cee384e3d6dc2e7bba1cc4
Reviewed-on: https://pdfium-review.googlesource.com/4170
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
-rw-r--r-- | core/fpdfapi/edit/cpdf_creator.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/edit/fpdf_edit_create.cpp | 1 | ||||
-rw-r--r-- | core/fpdfapi/parser/cfdf_document.cpp | 1 | ||||
-rw-r--r-- | core/fpdfapi/parser/fpdf_parser_utility.h | 6 |
4 files changed, 6 insertions, 4 deletions
diff --git a/core/fpdfapi/edit/cpdf_creator.h b/core/fpdfapi/edit/cpdf_creator.h index d3f18a82ab..e06ba05257 100644 --- a/core/fpdfapi/edit/cpdf_creator.h +++ b/core/fpdfapi/edit/cpdf_creator.h @@ -27,8 +27,6 @@ class CPDF_XRefStream; #define FPDFCREATE_PROGRESSIVE 4 #define FPDFCREATE_OBJECTSTREAM 8 -CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj); - class CPDF_Creator { public: explicit CPDF_Creator(CPDF_Document* pDoc); diff --git a/core/fpdfapi/edit/fpdf_edit_create.cpp b/core/fpdfapi/edit/fpdf_edit_create.cpp index f643d3f24e..38b7565960 100644 --- a/core/fpdfapi/edit/fpdf_edit_create.cpp +++ b/core/fpdfapi/edit/fpdf_edit_create.cpp @@ -23,6 +23,7 @@ #include "core/fpdfapi/parser/cpdf_stream_acc.h" #include "core/fpdfapi/parser/cpdf_string.h" #include "core/fpdfapi/parser/fpdf_parser_decode.h" +#include "core/fpdfapi/parser/fpdf_parser_utility.h" #include "core/fxcrt/cfx_maybe_owned.h" #include "core/fxcrt/fx_ext.h" #include "third_party/base/ptr_util.h" diff --git a/core/fpdfapi/parser/cfdf_document.cpp b/core/fpdfapi/parser/cfdf_document.cpp index 65755520c0..03cc655a0a 100644 --- a/core/fpdfapi/parser/cfdf_document.cpp +++ b/core/fpdfapi/parser/cfdf_document.cpp @@ -12,6 +12,7 @@ #include "core/fpdfapi/edit/cpdf_creator.h" #include "core/fpdfapi/parser/cpdf_dictionary.h" #include "core/fpdfapi/parser/cpdf_syntax_parser.h" +#include "core/fpdfapi/parser/fpdf_parser_utility.h" #include "third_party/base/ptr_util.h" CFDF_Document::CFDF_Document() diff --git a/core/fpdfapi/parser/fpdf_parser_utility.h b/core/fpdfapi/parser/fpdf_parser_utility.h index 29f54ee853..eb8442ac68 100644 --- a/core/fpdfapi/parser/fpdf_parser_utility.h +++ b/core/fpdfapi/parser/fpdf_parser_utility.h @@ -8,11 +8,11 @@ #define CORE_FPDFAPI_PARSER_FPDF_PARSER_UTILITY_H_ #include "core/fxcrt/cfx_retain_ptr.h" -#include "core/fxcrt/fx_string.h" -#include "core/fxcrt/fx_system.h" +#include "core/fxcrt/fx_basic.h" class IFX_SeekableReadStream; class CPDF_Dictionary; +class CPDF_Object; // Use the accessors below instead of directly accessing PDF_CharType. extern const char PDF_CharType[256]; @@ -37,4 +37,6 @@ inline bool PDFCharIsLineEnding(uint8_t c) { int32_t GetHeaderOffset(const CFX_RetainPtr<IFX_SeekableReadStream>& pFile); int32_t GetDirectInteger(CPDF_Dictionary* pDict, const CFX_ByteString& key); +CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj); + #endif // CORE_FPDFAPI_PARSER_FPDF_PARSER_UTILITY_H_ |