| 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/fpdfdoc/fpdf_doc.h" | 7 #include "../../include/fpdfdoc/fpdf_doc.h" |
| 8 #include "../../src/fxcrt/fx_safe_types.h" |
| 9 |
| 8 CPDF_LinkList::~CPDF_LinkList() | 10 CPDF_LinkList::~CPDF_LinkList() |
| 9 { | 11 { |
| 10 FX_POSITION pos = m_PageMap.GetStartPosition(); | 12 FX_POSITION pos = m_PageMap.GetStartPosition(); |
| 11 while (pos) { | 13 while (pos) { |
| 12 FX_LPVOID key, value; | 14 FX_LPVOID key, value; |
| 13 m_PageMap.GetNextAssoc(pos, key, value); | 15 m_PageMap.GetNextAssoc(pos, key, value); |
| 14 delete (CFX_PtrArray*)value; | 16 delete (CFX_PtrArray*)value; |
| 15 } | 17 } |
| 16 } | 18 } |
| 17 CFX_PtrArray* CPDF_LinkList::GetPageLinks(CPDF_Page* pPage) | 19 CFX_PtrArray* CPDF_LinkList::GetPageLinks(CPDF_Page* pPage) |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return name_tree.LookupNamedDest(pDoc, name); | 98 return name_tree.LookupNamedDest(pDoc, name); |
| 97 } else if (pDest->GetType() == PDFOBJ_ARRAY) { | 99 } else if (pDest->GetType() == PDFOBJ_ARRAY) { |
| 98 return (CPDF_Array*)pDest; | 100 return (CPDF_Array*)pDest; |
| 99 } | 101 } |
| 100 return NULL; | 102 return NULL; |
| 101 } | 103 } |
| 102 CPDF_Action CPDF_Link::GetAction() | 104 CPDF_Action CPDF_Link::GetAction() |
| 103 { | 105 { |
| 104 return m_pDict->GetDict("A"); | 106 return m_pDict->GetDict("A"); |
| 105 } | 107 } |
| OLD | NEW |