diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-04-27 21:30:57 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-27 21:30:57 +0000 |
commit | 74c8b8e6e561b4ff1059441d70f7f1476494dfbb (patch) | |
tree | 95ef6ba2458a8c21a71e63841a91a178274495cf /core/fxcodec/codec/ccodec_gifmodule.cpp | |
parent | 82f4f7f01bcac4acae86e179a57ae78cc5691a50 (diff) | |
download | pdfium-74c8b8e6e561b4ff1059441d70f7f1476494dfbb.tar.xz |
Replace void* with CFX_GifPalette* in fxcodec
The type is known where we need it, and we avoid some dubious
casts in the process. Also avoid clumsy indexing and use the
members directly in computations.
Bug: pdfium:243
Change-Id: I1e061465fd0f9045cf5b82067204f26ac7df53f0
Reviewed-on: https://pdfium-review.googlesource.com/31651
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_gifmodule.cpp')
-rw-r--r-- | core/fxcodec/codec/ccodec_gifmodule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_gifmodule.cpp b/core/fxcodec/codec/ccodec_gifmodule.cpp index dc2c0c83a4..9911d0f5e0 100644 --- a/core/fxcodec/codec/ccodec_gifmodule.cpp +++ b/core/fxcodec/codec/ccodec_gifmodule.cpp @@ -26,7 +26,7 @@ CFX_GifDecodeStatus CCodec_GifModule::ReadHeader(Context* pContext, int* width, int* height, int* pal_num, - void** pal_pp, + CFX_GifPalette** pal_pp, int* bg_index, CFX_DIBAttribute* pAttribute) { auto* context = static_cast<CFX_GifContext*>(pContext); |