diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-10 16:29:19 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-10 16:29:19 +0000 |
commit | e1a7e8589a8cb4fc8a8052819742bdb0bac91a52 (patch) | |
tree | 712a54e93cf31dd8d3ae79e8934c61659c4b6fbd /core/fxcodec/gif/cfx_lzwdecompressor.cpp | |
parent | 4174b5ab6ac9024acb9b42acbb61d628a2a679e3 (diff) | |
download | pdfium-e1a7e8589a8cb4fc8a8052819742bdb0bac91a52.tar.xz |
Remove const_cast<> from CFX_LZWDecompressor::Decode() caller.
Because the argument to Decode() can be const. Part of the ongoing
war against const_cast<>.
Change-Id: I3a8402277dbfc4fd80b1dd60225de57b732713f8
Reviewed-on: https://pdfium-review.googlesource.com/39832
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/gif/cfx_lzwdecompressor.cpp')
-rw-r--r-- | core/fxcodec/gif/cfx_lzwdecompressor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/gif/cfx_lzwdecompressor.cpp b/core/fxcodec/gif/cfx_lzwdecompressor.cpp index d4fd43d321..a23106bb37 100644 --- a/core/fxcodec/gif/cfx_lzwdecompressor.cpp +++ b/core/fxcodec/gif/cfx_lzwdecompressor.cpp @@ -42,7 +42,7 @@ CFX_LZWDecompressor::CFX_LZWDecompressor(uint8_t color_exp, uint8_t code_exp) CFX_LZWDecompressor::~CFX_LZWDecompressor() {} -CFX_GifDecodeStatus CFX_LZWDecompressor::Decode(uint8_t* src_buf, +CFX_GifDecodeStatus CFX_LZWDecompressor::Decode(const uint8_t* src_buf, uint32_t src_size, uint8_t* dest_buf, uint32_t* dest_size) { |