summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2018-04-17 18:23:49 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-17 18:23:49 +0000
commitbddc60d0977068fbe89a1dad403f2e6ddd7ff1a1 (patch)
tree1769780973bd083f4598baed4d54a200737805fa /xfa
parentffdae5fceb4e0b37bc649d99d12c15ccd6ae1b9e (diff)
downloadpdfium-bddc60d0977068fbe89a1dad403f2e6ddd7ff1a1.tar.xz
Remove write abilities from CFX_SeekableStreamProxy
This CL removes the abliity to write to the seekable stream proxy class. Change-Id: I0eda2619714df190d326c23dfdcd4527d4312779 Reviewed-on: https://pdfium-review.googlesource.com/30853 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fxfa/parser/cxfa_document_parser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_document_parser.cpp b/xfa/fxfa/parser/cxfa_document_parser.cpp
index 32bcba0609..f52d52ff3c 100644
--- a/xfa/fxfa/parser/cxfa_document_parser.cpp
+++ b/xfa/fxfa/parser/cxfa_document_parser.cpp
@@ -329,8 +329,7 @@ CXFA_DocumentParser::~CXFA_DocumentParser() {}
bool CXFA_DocumentParser::Parse(const RetainPtr<IFX_SeekableStream>& pStream,
XFA_PacketType ePacketID) {
- auto pStreamProxy =
- pdfium::MakeRetain<CFX_SeekableStreamProxy>(pStream, false);
+ auto pStreamProxy = pdfium::MakeRetain<CFX_SeekableStreamProxy>(pStream);
uint16_t wCodePage = pStreamProxy->GetCodePage();
if (wCodePage != FX_CODEPAGE_UTF16LE && wCodePage != FX_CODEPAGE_UTF16BE &&
wCodePage != FX_CODEPAGE_UTF8) {