From e05957908d7bac3c5938a8c20d7e1b732e4f7e92 Mon Sep 17 00:00:00 2001 From: weili Date: Tue, 12 Jul 2016 11:58:55 -0700 Subject: Replace void* to actual type for jbig2 context to avoid casts Also clear up a few variable names and unnecessary brackets. Review-Url: https://codereview.chromium.org/2143083002 --- core/fpdfapi/fpdf_render/render_int.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/fpdfapi') diff --git a/core/fpdfapi/fpdf_render/render_int.h b/core/fpdfapi/fpdf_render/render_int.h index 99d1dfc292..547738932a 100644 --- a/core/fpdfapi/fpdf_render/render_int.h +++ b/core/fpdfapi/fpdf_render/render_int.h @@ -16,6 +16,7 @@ #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" +class CCodec_Jbig2Context; class CCodec_ScanlineDecoder; class CFX_FontCache; class CFX_GlyphBitmap; @@ -601,7 +602,7 @@ class CPDF_DIBSource : public CFX_DIBSource { uint8_t* m_pMaskedLine; std::unique_ptr m_pCachedBitmap; std::unique_ptr m_pDecoder; - void* m_pJbig2Context; + CCodec_Jbig2Context* m_pJbig2Context; CPDF_DIBSource* m_pMask; std::unique_ptr m_pGlobalStream; CPDF_Stream* m_pMaskStream; -- cgit v1.2.3