summaryrefslogtreecommitdiff
path: root/fxjs/xfa
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-15 18:42:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-15 18:42:32 +0000
commit48ae3075a5c80e75923a60d4d0ba0b56d9b08c2a (patch)
tree464540a6b17b7e2cc3096d7f579729745f5b0664 /fxjs/xfa
parent55ccb526913debb3269a33792bbd61b05656ec46 (diff)
downloadpdfium-48ae3075a5c80e75923a60d4d0ba0b56d9b08c2a.tar.xz
Make CFX_MemoryStream always consecutive.chromium/3524
Non-consecutive mode has questionable correctness and is not an obvious performance win. Change-Id: Idaa66e5ee5c4604628a0f55b67d5a04ab47ea5ec Reviewed-on: https://pdfium-review.googlesource.com/40050 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/xfa')
-rw-r--r--fxjs/xfa/cjx_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/xfa/cjx_node.cpp b/fxjs/xfa/cjx_node.cpp
index efef5af87b..b1d8c2cb66 100644
--- a/fxjs/xfa/cjx_node.cpp
+++ b/fxjs/xfa/cjx_node.cpp
@@ -357,7 +357,7 @@ CJS_Return CJX_Node::saveXML(CFX_V8* runtime,
XFA_DataExporter_DealWithDataGroupNode(GetXFANode());
}
- auto pMemoryStream = pdfium::MakeRetain<CFX_MemoryStream>(true);
+ auto pMemoryStream = pdfium::MakeRetain<CFX_MemoryStream>();
pMemoryStream->WriteString(bsXMLHeader.AsStringView());
if (GetXFANode()->GetPacketType() == XFA_PacketType::Form) {