summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_bytestring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_bytestring.cpp')
-rw-r--r--core/fxcrt/cfx_bytestring.cpp4
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) {