diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-10 20:03:34 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-10 20:03:34 +0000 |
commit | 994d8b4e363bb86128593a9000a17b0e79f849f5 (patch) | |
tree | d26a21bb890d3795e02a1b9502ce11ceea9ad3eb /core/fxcodec/codec/ccodec_bmpmodule.cpp | |
parent | f36a4644b828bd9ad214a42511af91b4a1073eea (diff) | |
download | pdfium-994d8b4e363bb86128593a9000a17b0e79f849f5.tar.xz |
Remove const args and const_casts where not required.
Introduce const/non-const versions of method where required.
Part of the war on const_cast<>. Tidy one expression to use []
instead of .data().
Change-Id: I41e45669c79eee242ff2244c7dc3afcf6386a433
Reviewed-on: https://pdfium-review.googlesource.com/39852
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_bmpmodule.cpp')
-rw-r--r-- | core/fxcodec/codec/ccodec_bmpmodule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcodec/codec/ccodec_bmpmodule.cpp b/core/fxcodec/codec/ccodec_bmpmodule.cpp index eb9bdf84f5..f4bfa010dc 100644 --- a/core/fxcodec/codec/ccodec_bmpmodule.cpp +++ b/core/fxcodec/codec/ccodec_bmpmodule.cpp @@ -70,8 +70,8 @@ FX_FILESIZE CCodec_BmpModule::GetAvailInput(Context* pContext, } void CCodec_BmpModule::Input(Context* pContext, - const uint8_t* src_buf, + uint8_t* src_buf, uint32_t src_size) { auto* ctx = static_cast<CFX_BmpContext*>(pContext); - ctx->m_Bmp.SetInputBuffer(const_cast<uint8_t*>(src_buf), src_size); + ctx->m_Bmp.SetInputBuffer(src_buf, src_size); } |