summaryrefslogtreecommitdiff
path: root/core/fpdfapi/edit/cpdf_flateencoder.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-05 19:09:10 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-05 19:09:10 +0000
commit2cc287aec96752d8c36b4178bb75f737842b649b (patch)
tree84a9dac52899f9d36c798f47ad0b1ee3960aaaba /core/fpdfapi/edit/cpdf_flateencoder.h
parent4a8478efac2c6b8642298b1e0f2c83247a569cb1 (diff)
downloadpdfium-2cc287aec96752d8c36b4178bb75f737842b649b.tar.xz
Get rid of a const_cast in CPDF_FlateEncoder.
Change-Id: I3ee8f8e9eb33d251dc00336bcd31e578e7ce5143 Reviewed-on: https://pdfium-review.googlesource.com/29854 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_flateencoder.h')
-rw-r--r--core/fpdfapi/edit/cpdf_flateencoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/edit/cpdf_flateencoder.h b/core/fpdfapi/edit/cpdf_flateencoder.h
index acac753e5c..b2213de5f3 100644
--- a/core/fpdfapi/edit/cpdf_flateencoder.h
+++ b/core/fpdfapi/edit/cpdf_flateencoder.h
@@ -23,7 +23,7 @@ class CPDF_FlateEncoder {
void CloneDict();
uint32_t GetSize() const { return m_dwSize; }
- uint8_t* GetData() const { return m_pData.Get(); }
+ const uint8_t* GetData() const { return m_pData.Get(); }
CPDF_Dictionary* GetDict() { return m_pDict.Get(); }