| 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 "../../include/fxcrt/fx_xml.h" | |
| 8 #include "xml_int.h" | 7 #include "xml_int.h" |
| 8 |
| 9 #include "core/include/fxcrt/fx_xml.h" |
| 10 |
| 9 CXML_Parser::~CXML_Parser() { | 11 CXML_Parser::~CXML_Parser() { |
| 10 if (m_bOwnedStream) { | 12 if (m_bOwnedStream) { |
| 11 m_pDataAcc->Release(); | 13 m_pDataAcc->Release(); |
| 12 } | 14 } |
| 13 } | 15 } |
| 14 FX_BOOL CXML_Parser::Init(uint8_t* pBuffer, size_t size) { | 16 FX_BOOL CXML_Parser::Init(uint8_t* pBuffer, size_t size) { |
| 15 m_pDataAcc = new CXML_DataBufAcc(pBuffer, size); | 17 m_pDataAcc = new CXML_DataBufAcc(pBuffer, size); |
| 16 return Init(TRUE); | 18 return Init(TRUE); |
| 17 } | 19 } |
| 18 FX_BOOL CXML_Parser::Init(IFX_FileRead* pFileRead) { | 20 FX_BOOL CXML_Parser::Init(IFX_FileRead* pFileRead) { |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 return (*m_pMap)[index]; | 823 return (*m_pMap)[index]; |
| 822 } | 824 } |
| 823 void CXML_AttrMap::RemoveAll() { | 825 void CXML_AttrMap::RemoveAll() { |
| 824 if (!m_pMap) { | 826 if (!m_pMap) { |
| 825 return; | 827 return; |
| 826 } | 828 } |
| 827 m_pMap->RemoveAll(); | 829 m_pMap->RemoveAll(); |
| 828 delete m_pMap; | 830 delete m_pMap; |
| 829 m_pMap = NULL; | 831 m_pMap = NULL; |
| 830 } | 832 } |
| OLD | NEW |