From 8f38e4fff7e80e676c1c7747634d6d4648688afc Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Fri, 9 Jun 2017 15:37:45 -0400 Subject: Converting CFX_ByteTextBuf to ostringstream in cpdf_pagecontentgenerator. Bug: pdfium:731 Change-Id: If606359bd9264a6f440871ab824ab54a4efae901 Reviewed-on: https://pdfium-review.googlesource.com/6450 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fpdfapi/edit/cpdf_pagecontentgenerator.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'core/fpdfapi/edit/cpdf_pagecontentgenerator.h') diff --git a/core/fpdfapi/edit/cpdf_pagecontentgenerator.h b/core/fpdfapi/edit/cpdf_pagecontentgenerator.h index 302375d536..19a2faa6bf 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentgenerator.h +++ b/core/fpdfapi/edit/cpdf_pagecontentgenerator.h @@ -7,6 +7,7 @@ #ifndef CORE_FPDFAPI_EDIT_CPDF_PAGECONTENTGENERATOR_H_ #define CORE_FPDFAPI_EDIT_CPDF_PAGECONTENTGENERATOR_H_ +#include #include #include "core/fxcrt/cfx_unowned_ptr.h" @@ -30,11 +31,11 @@ class CPDF_PageContentGenerator { private: friend class CPDF_PageContentGeneratorTest; - bool ProcessPageObjects(CFX_ByteTextBuf* buf); - void ProcessPath(CFX_ByteTextBuf* buf, CPDF_PathObject* pPathObj); - void ProcessImage(CFX_ByteTextBuf* buf, CPDF_ImageObject* pImageObj); - void ProcessGraphics(CFX_ByteTextBuf* buf, CPDF_PageObject* pPageObj); - void ProcessText(CFX_ByteTextBuf* buf, CPDF_TextObject* pTextObj); + bool ProcessPageObjects(std::ostringstream* buf); + void ProcessPath(std::ostringstream* buf, CPDF_PathObject* pPathObj); + void ProcessImage(std::ostringstream* buf, CPDF_ImageObject* pImageObj); + void ProcessGraphics(std::ostringstream* buf, CPDF_PageObject* pPageObj); + void ProcessText(std::ostringstream* buf, CPDF_TextObject* pTextObj); CFX_ByteString RealizeResource(uint32_t dwResourceObjNum, const CFX_ByteString& bsType); -- cgit v1.2.3