diff options
author | weili <weili@chromium.org> | 2016-06-03 11:22:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-03 11:22:16 -0700 |
commit | 12367cb5e83e771cd67948c810fdd5f63d61af87 (patch) | |
tree | 47daac780e5c028ba531830b514c0c60102f1368 /core/fxcodec/jbig2/JBig2_Context.cpp | |
parent | 79d798da0d4b5f9f1fc27917102bdd7bcfbe863e (diff) | |
download | pdfium-12367cb5e83e771cd67948c810fdd5f63d61af87.tar.xz |
Fix some code which causes warnings when compiled by /analyze tool
The code may not cause error conditions, but can be improved. These
warnings include uninitialized variables, signed/unsigned mismatch,
redundant condition, and using bool in arithmetic operations.
Also remove a chunk of unused code.
BUG=chromium:613623, chromium:427616
Review-Url: https://codereview.chromium.org/2036203004
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Context.cpp')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_Context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Context.cpp b/core/fxcodec/jbig2/JBig2_Context.cpp index a0a411fbcf..25c9ff7649 100644 --- a/core/fxcodec/jbig2/JBig2_Context.cpp +++ b/core/fxcodec/jbig2/JBig2_Context.cpp @@ -631,7 +631,7 @@ int32_t CJBig2_Context::parseSymbolDict(CJBig2_Segment* pSegment, return JBIG2_ERROR_FATAL; m_pStream->alignByte(); } - if (m_bIsGlobal && kSymbolDictCacheMaxSize > 0) { + if (m_bIsGlobal) { std::unique_ptr<CJBig2_SymbolDict> value = pSegment->m_Result.sd->DeepCopy(); int size = pdfium::CollectionSize<int>(*m_pSymbolDictCache); |