diff options
author | Nicolas Pena <npm@chromium.org> | 2018-06-13 20:11:07 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-13 20:11:07 +0000 |
commit | 862520506e75e1129d3ae86d96f60facf287296e (patch) | |
tree | 22b95431bba81a3637977cabd75da05800b56870 /core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp | |
parent | ae7bcb7c9ec3a617a464697845968401391f74c9 (diff) | |
download | pdfium-862520506e75e1129d3ae86d96f60facf287296e.tar.xz |
Make CJBig2_Context::GetHuffmanTable return const
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 <hnakashima@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp b/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp index 7f250a5d08..bea2b09042 100644 --- a/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp +++ b/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp @@ -14,7 +14,7 @@ CJBig2_HuffmanDecoder::CJBig2_HuffmanDecoder(CJBig2_BitStream* pStream) CJBig2_HuffmanDecoder::~CJBig2_HuffmanDecoder() {} -int CJBig2_HuffmanDecoder::DecodeAValue(CJBig2_HuffmanTable* pTable, +int CJBig2_HuffmanDecoder::DecodeAValue(const CJBig2_HuffmanTable* pTable, int* nResult) { FX_SAFE_INT32 nSafeVal = 0; int nBits = 0; |