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 "xml_int.h" | 7 #include "core/src/fxcrt/xml_int.h" |
8 | 8 |
9 #include "core/include/fxcrt/fx_ext.h" | 9 #include "core/include/fxcrt/fx_ext.h" |
10 #include "core/include/fxcrt/fx_xml.h" | 10 #include "core/include/fxcrt/fx_xml.h" |
11 | 11 |
12 CXML_Parser::~CXML_Parser() { | 12 CXML_Parser::~CXML_Parser() { |
13 if (m_bOwnedStream) { | 13 if (m_bOwnedStream) { |
14 m_pDataAcc->Release(); | 14 m_pDataAcc->Release(); |
15 } | 15 } |
16 } | 16 } |
17 FX_BOOL CXML_Parser::Init(uint8_t* pBuffer, size_t size) { | 17 FX_BOOL CXML_Parser::Init(uint8_t* pBuffer, size_t size) { |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 return (*m_pMap)[index]; | 805 return (*m_pMap)[index]; |
806 } | 806 } |
807 void CXML_AttrMap::RemoveAll() { | 807 void CXML_AttrMap::RemoveAll() { |
808 if (!m_pMap) { | 808 if (!m_pMap) { |
809 return; | 809 return; |
810 } | 810 } |
811 m_pMap->RemoveAll(); | 811 m_pMap->RemoveAll(); |
812 delete m_pMap; | 812 delete m_pMap; |
813 m_pMap = NULL; | 813 m_pMap = NULL; |
814 } | 814 } |
OLD | NEW |