summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/jbig2/JBig2_HuffmanTable.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-08 15:51:29 -0700
committerLei Zhang <thestig@chromium.org>2015-10-08 15:51:29 -0700
commitd03ba8d1a5928e8f3f6bd7da063b53b0bc40abfd (patch)
tree7736bff04e9169378df7c21bcb24af043ea70b29 /core/src/fxcodec/jbig2/JBig2_HuffmanTable.h
parent06f255ca4040f3d73cf09f1dbd63a3b167f6a4c1 (diff)
downloadpdfium-d03ba8d1a5928e8f3f6bd7da063b53b0bc40abfd.tar.xz
Fix a bunch of sign mismatch warnings.
Also remove some gotos and move code into an anonymous namespace. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1356373003 .
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.h')
-rw-r--r--core/src/fxcodec/jbig2/JBig2_HuffmanTable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_HuffmanTable.h b/core/src/fxcodec/jbig2/JBig2_HuffmanTable.h
index 7c843cf91b..fe8294dc7e 100644
--- a/core/src/fxcodec/jbig2/JBig2_HuffmanTable.h
+++ b/core/src/fxcodec/jbig2/JBig2_HuffmanTable.h
@@ -14,7 +14,7 @@ class CJBig2_HuffmanTable {
public:
CJBig2_HuffmanTable(const JBig2TableLine* pTable, int nLines, FX_BOOL bHTOOB);
- CJBig2_HuffmanTable(CJBig2_BitStream* pStream);
+ explicit CJBig2_HuffmanTable(CJBig2_BitStream* pStream);
~CJBig2_HuffmanTable();
@@ -24,13 +24,13 @@ class CJBig2_HuffmanTable {
int parseFromCodedBuffer(CJBig2_BitStream* pStream);
- FX_BOOL isOK() { return m_bOK; }
+ FX_BOOL isOK() const { return m_bOK; }
private:
void init();
FX_BOOL HTOOB;
- int NTEMP;
+ FX_DWORD NTEMP;
int* CODES;
int* PREFLEN;
int* RANGELEN;