From 48ae3075a5c80e75923a60d4d0ba0b56d9b08c2a Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 15 Aug 2018 18:42:32 +0000 Subject: Make CFX_MemoryStream always consecutive. 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 Commit-Queue: Lei Zhang --- xfa/fxfa/parser/xfa_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/parser') diff --git a/xfa/fxfa/parser/xfa_utils.cpp b/xfa/fxfa/parser/xfa_utils.cpp index 5a8f1c8711..ba3d857522 100644 --- a/xfa/fxfa/parser/xfa_utils.cpp +++ b/xfa/fxfa/parser/xfa_utils.cpp @@ -215,7 +215,7 @@ void RegenerateFormFile_Changed(CXFA_Node* pNode, if (!pRichTextXML) break; - auto pMemStream = pdfium::MakeRetain(true); + auto pMemStream = pdfium::MakeRetain(); pRichTextXML->Save(pMemStream); wsChildren += WideString::FromUTF8( ByteStringView(pMemStream->GetBuffer(), pMemStream->GetSize())); -- cgit v1.2.3