| 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" | 7 #include "../../include/fxcrt/fx_xml.h" |
| 8 #include "xml_int.h" | 8 #include "xml_int.h" |
| 9 CXML_Parser::~CXML_Parser() | 9 CXML_Parser::~CXML_Parser() |
| 10 { | 10 { |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 CXML_AttrItem& CXML_AttrMap::GetAt(int index) const | 856 CXML_AttrItem& CXML_AttrMap::GetAt(int index) const |
| 857 { | 857 { |
| 858 ASSERT(m_pMap != NULL); | 858 ASSERT(m_pMap != NULL); |
| 859 return (*m_pMap)[index]; | 859 return (*m_pMap)[index]; |
| 860 } | 860 } |
| 861 void CXML_AttrMap::RemoveAll() | 861 void CXML_AttrMap::RemoveAll() |
| 862 { | 862 { |
| 863 if (!m_pMap) { | 863 if (!m_pMap) { |
| 864 return; | 864 return; |
| 865 } | 865 } |
| 866 for (int i = 0; i < m_pMap->GetSize(); i ++) { | |
| 867 CXML_AttrItem& item = (*m_pMap)[i]; | |
| 868 } | |
| 869 m_pMap->RemoveAll(); | 866 m_pMap->RemoveAll(); |
| 870 delete m_pMap; | 867 delete m_pMap; |
| 871 m_pMap = NULL; | 868 m_pMap = NULL; |
| 872 } | 869 } |
| OLD | NEW |