diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-04-17 18:23:28 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-17 18:23:28 +0000 |
commit | ffdae5fceb4e0b37bc649d99d12c15ccd6ae1b9e (patch) | |
tree | 3a719c2bf12bf2b16f473db9e739e9de15e5fafe /xfa/fxfa/parser/cxfa_dataexporter.cpp | |
parent | bc069b7a855998ab28f487d2f09152851dddb16a (diff) | |
download | pdfium-ffdae5fceb4e0b37bc649d99d12c15ccd6ae1b9e.tar.xz |
Use IFX_SeekableStream in xfa_utils
This CL converts xfa_utils to use an IFX_SeekableStream instead of a
CFX_SeekableStreamProxy.
Change-Id: I824b477351ac29d54118df2f3c5442c503aa3671
Reviewed-on: https://pdfium-review.googlesource.com/30852
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_dataexporter.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_dataexporter.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/cxfa_dataexporter.cpp b/xfa/fxfa/parser/cxfa_dataexporter.cpp index 1bd81e820a..eb3e04afd8 100644 --- a/xfa/fxfa/parser/cxfa_dataexporter.cpp +++ b/xfa/fxfa/parser/cxfa_dataexporter.cpp @@ -49,13 +49,9 @@ bool CXFA_DataExporter::Export(const RetainPtr<IFX_SeekableStream>& pStream, pElement->Save(pStream); break; } - case XFA_PacketType::Form: { - auto proxy = - pdfium::MakeRetain<CFX_SeekableStreamProxy>(pStream, false); - proxy->SetCodePage(FX_CODEPAGE_UTF8); - XFA_DataExporter_RegenerateFormFile(pNode, proxy, false); + case XFA_PacketType::Form: + XFA_DataExporter_RegenerateFormFile(pNode, pStream, false); break; - } case XFA_PacketType::Template: default: { CFX_XMLElement* pElement = |