| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "JBig2_SymbolDict.h" | 7 #include "JBig2_SymbolDict.h" |
| 8 CJBig2_SymbolDict::CJBig2_SymbolDict() | 8 CJBig2_SymbolDict::CJBig2_SymbolDict() |
| 9 { | 9 { |
| 10 SDNUMEXSYMS = 0; | 10 SDNUMEXSYMS = 0; |
| 11 SDEXSYMS = NULL; | 11 SDEXSYMS = NULL; |
| 12 m_bContextRetained = FALSE; | 12 m_bContextRetained = false; |
| 13 m_gbContext = m_grContext = NULL; | 13 m_gbContext = m_grContext = NULL; |
| 14 } | 14 } |
| 15 | 15 |
| 16 CJBig2_SymbolDict *CJBig2_SymbolDict::DeepCopy() | 16 CJBig2_SymbolDict *CJBig2_SymbolDict::DeepCopy() |
| 17 { | 17 { |
| 18 CJBig2_SymbolDict *dst = NULL; | 18 CJBig2_SymbolDict *dst = NULL; |
| 19 CJBig2_SymbolDict *src = this; | 19 CJBig2_SymbolDict *src = this; |
| 20 if (src->m_bContextRetained || | 20 if (src->m_bContextRetained || |
| 21 src->m_gbContext || | 21 src->m_gbContext || |
| 22 src->m_grContext) { | 22 src->m_grContext) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 47 } | 47 } |
| 48 if(m_bContextRetained) { | 48 if(m_bContextRetained) { |
| 49 if(m_gbContext) { | 49 if(m_gbContext) { |
| 50 m_pModule->JBig2_Free(m_gbContext); | 50 m_pModule->JBig2_Free(m_gbContext); |
| 51 } | 51 } |
| 52 if(m_grContext) { | 52 if(m_grContext) { |
| 53 m_pModule->JBig2_Free(m_grContext); | 53 m_pModule->JBig2_Free(m_grContext); |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 } | 56 } |
| OLD | NEW |