diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-05 19:08:20 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-05 19:08:20 +0000 |
commit | 4a8478efac2c6b8642298b1e0f2c83247a569cb1 (patch) | |
tree | f2190b559a9dc60f363dc6ae35736284eaf76656 /core/fpdfapi/edit/cpdf_flateencoder.cpp | |
parent | 5a552539e1382443eb18b046ad3ab9c4e673b5b1 (diff) | |
download | pdfium-4a8478efac2c6b8642298b1e0f2c83247a569cb1.tar.xz |
Remove some const_casts in CPDF_Creator.
Change-Id: I7c639655c003527417255c134a4393d68cda3ef1
Reviewed-on: https://pdfium-review.googlesource.com/29852
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_flateencoder.cpp')
-rw-r--r-- | core/fpdfapi/edit/cpdf_flateencoder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/edit/cpdf_flateencoder.cpp b/core/fpdfapi/edit/cpdf_flateencoder.cpp index 555da84244..f68d02c31c 100644 --- a/core/fpdfapi/edit/cpdf_flateencoder.cpp +++ b/core/fpdfapi/edit/cpdf_flateencoder.cpp @@ -12,7 +12,8 @@ #include "core/fpdfapi/parser/cpdf_number.h" #include "core/fpdfapi/parser/fpdf_parser_decode.h" -CPDF_FlateEncoder::CPDF_FlateEncoder(CPDF_Stream* pStream, bool bFlateEncode) +CPDF_FlateEncoder::CPDF_FlateEncoder(const CPDF_Stream* pStream, + bool bFlateEncode) : m_dwSize(0), m_pAcc(pdfium::MakeRetain<CPDF_StreamAcc>(pStream)) { m_pAcc->LoadAllDataRaw(); |