summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-14 02:16:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-14 02:16:37 +0000
commit692aeadfe32d9aa9516cfdf7705b979db548d974 (patch)
tree2e4021d7054aa6ec606f624e7bb525ca2b3a6302 /core/fpdfapi
parented176992eb7ddbb0fee7b79625501df06f8ccf93 (diff)
downloadpdfium-692aeadfe32d9aa9516cfdf7705b979db548d974.tar.xz
Remove |bTakeOver| parameter from CFX_MemoryStream ctor.
It is always true now. BUG=pdfium:263 Change-Id: I74fd0091f5815701718e8cd5acc6e7a0de772a85 Reviewed-on: https://pdfium-review.googlesource.com/40031 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/parser/cpdf_object_stream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_object_stream.cpp b/core/fpdfapi/parser/cpdf_object_stream.cpp
index a85cbf1ffa..d6b3d365f6 100644
--- a/core/fpdfapi/parser/cpdf_object_stream.cpp
+++ b/core/fpdfapi/parser/cpdf_object_stream.cpp
@@ -97,8 +97,7 @@ void CPDF_ObjectStream::Init(const CPDF_Stream* stream) {
stream_acc->LoadAllDataFiltered();
const uint32_t data_size = stream_acc->GetSize();
data_stream_ = pdfium::MakeRetain<CFX_MemoryStream>(
- stream_acc->DetachData().release(), static_cast<size_t>(data_size),
- true);
+ stream_acc->DetachData().release(), data_size);
}
CPDF_SyntaxParser syntax(data_stream_);