From 862520506e75e1129d3ae86d96f60facf287296e Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Wed, 13 Jun 2018 20:11:07 +0000 Subject: Make CJBig2_Context::GetHuffmanTable return const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL changes GetHuffmanTable() to return a const pointer and fixes other members / functions accordingly. Change-Id: Ie62fe044b3156f67885dd4fa1f6512cbd35a83d3 Reviewed-on: https://pdfium-review.googlesource.com/35116 Reviewed-by: Henrique Nakashima Commit-Queue: Nicolás Peña Moreno --- core/fxcodec/jbig2/JBig2_Context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcodec/jbig2/JBig2_Context.h') diff --git a/core/fxcodec/jbig2/JBig2_Context.h b/core/fxcodec/jbig2/JBig2_Context.h index 3113cce063..20828a23b5 100644 --- a/core/fxcodec/jbig2/JBig2_Context.h +++ b/core/fxcodec/jbig2/JBig2_Context.h @@ -79,7 +79,7 @@ class CJBig2_Context { std::vector DecodeSymbolIDHuffmanTable(uint32_t SBNUMSYMS); - CJBig2_HuffmanTable* GetHuffmanTable(size_t idx); + const CJBig2_HuffmanTable* GetHuffmanTable(size_t idx); std::unique_ptr m_pGlobalContext; std::unique_ptr m_pStream; -- cgit v1.2.3