summaryrefslogtreecommitdiff
path: root/fpdfsdk
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 /fpdfsdk
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 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdf_save.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_save.cpp b/fpdfsdk/fpdf_save.cpp
index 52b87264e7..be1dbd14f8 100644
--- a/fpdfsdk/fpdf_save.cpp
+++ b/fpdfsdk/fpdf_save.cpp
@@ -120,7 +120,7 @@ bool SaveXFADocumentData(CPDFXFA_Context* pContext,
// L"datasets"
{
RetainPtr<IFX_SeekableStream> pDsfileWrite =
- pdfium::MakeRetain<CFX_MemoryStream>(false);
+ pdfium::MakeRetain<CFX_MemoryStream>();
CXFA_FFDoc* ffdoc = pXFADocView->GetDoc();
if (ffdoc->SavePackage(
ToNode(ffdoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Datasets)),
@@ -146,7 +146,7 @@ bool SaveXFADocumentData(CPDFXFA_Context* pContext,
// L"form"
{
RetainPtr<IFX_SeekableStream> pfileWrite =
- pdfium::MakeRetain<CFX_MemoryStream>(false);
+ pdfium::MakeRetain<CFX_MemoryStream>();
CXFA_FFDoc* ffdoc = pXFADocView->GetDoc();
if (ffdoc->SavePackage(