From 53827cbbfebae66dd31f7aa30d3ee5c88716897a Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 8 Jun 2017 20:10:44 +0000 Subject: Revert "Adding constructor of CFX_ByteString that takes a std::ostringstream." This reverts commit 4633d52736c4b926eceb1e18c4b379ff57fd31fa. Reason for revert: windows_xfa_clang broke? Original change's description: > Adding constructor of CFX_ByteString that takes a std::ostringstream. > > Bug: pdfium:731 > Change-Id: Ia0734deb3f309732dccae5c0cf6131d32713e87a > Reviewed-on: https://pdfium-review.googlesource.com/6394 > Reviewed-by: dsinclair > Commit-Queue: Henrique Nakashima TBR=dsinclair@chromium.org,hnakashima@chromium.org No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: pdfium:731 Change-Id: I674aa1be12d6777c4d565d3131910ac5a11d8dc0 Reviewed-on: https://pdfium-review.googlesource.com/6395 Reviewed-by: Henrique Nakashima Commit-Queue: Henrique Nakashima --- core/fxcrt/cfx_bytestring.cpp | 4 ---- core/fxcrt/cfx_bytestring.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/core/fxcrt/cfx_bytestring.cpp b/core/fxcrt/cfx_bytestring.cpp index b83c59ffeb..f0dc370cc9 100644 --- a/core/fxcrt/cfx_bytestring.cpp +++ b/core/fxcrt/cfx_bytestring.cpp @@ -189,10 +189,6 @@ CFX_ByteString::CFX_ByteString( } } -CFX_ByteString::CFX_ByteString(std::ostringstream& outStream) - : CFX_ByteString(outStream.str().c_str(), - static_cast(outStream.tellp())) {} - CFX_ByteString::~CFX_ByteString() {} const CFX_ByteString& CFX_ByteString::operator=(const char* pStr) { diff --git a/core/fxcrt/cfx_bytestring.h b/core/fxcrt/cfx_bytestring.h index 23e02491c5..c4d48954ba 100644 --- a/core/fxcrt/cfx_bytestring.h +++ b/core/fxcrt/cfx_bytestring.h @@ -8,7 +8,6 @@ #define CORE_FXCRT_CFX_BYTESTRING_H_ #include -#include #include #include "core/fxcrt/cfx_retain_ptr.h" @@ -46,7 +45,6 @@ class CFX_ByteString { explicit CFX_ByteString(const CFX_ByteStringC& bstrc); CFX_ByteString(const CFX_ByteStringC& bstrc1, const CFX_ByteStringC& bstrc2); CFX_ByteString(const std::initializer_list& list); - explicit CFX_ByteString(std::ostringstream& outStream); ~CFX_ByteString(); -- cgit v1.2.3