diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2017-06-08 15:30:57 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-08 20:02:44 +0000 |
commit | 4633d52736c4b926eceb1e18c4b379ff57fd31fa (patch) | |
tree | b1cccc907d119742a547d47881bfa6dc8777680e /core/fxcrt/cfx_bytestring.cpp | |
parent | 2ddf1ccbf8c0596c0ba994114420a50fca2240f3 (diff) | |
download | pdfium-4633d52736c4b926eceb1e18c4b379ff57fd31fa.tar.xz |
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 <dsinclair@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_bytestring.cpp')
-rw-r--r-- | core/fxcrt/cfx_bytestring.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_bytestring.cpp b/core/fxcrt/cfx_bytestring.cpp index f0dc370cc9..b83c59ffeb 100644 --- a/core/fxcrt/cfx_bytestring.cpp +++ b/core/fxcrt/cfx_bytestring.cpp @@ -189,6 +189,10 @@ CFX_ByteString::CFX_ByteString( } } +CFX_ByteString::CFX_ByteString(std::ostringstream& outStream) + : CFX_ByteString(outStream.str().c_str(), + static_cast<int>(outStream.tellp())) {} + CFX_ByteString::~CFX_ByteString() {} const CFX_ByteString& CFX_ByteString::operator=(const char* pStr) { |