| 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 CPDF_Bookmark CPDF_BookmarkTree::GetFirstChild(const CPDF_Bookmark& parent) cons
t | 8 CPDF_Bookmark CPDF_BookmarkTree::GetFirstChild(const CPDF_Bookmark& parent) cons
t |
| 9 { | 9 { |
| 10 if (!parent.m_pDict) { | 10 if (!parent.m_pDict) { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 CFX_ByteStringC name = pDest->GetString(); | 79 CFX_ByteStringC name = pDest->GetString(); |
| 80 return name_tree.LookupNamedDest(pDocument, name); | 80 return name_tree.LookupNamedDest(pDocument, name); |
| 81 } else if (pDest->GetType() == PDFOBJ_ARRAY) { | 81 } else if (pDest->GetType() == PDFOBJ_ARRAY) { |
| 82 return (CPDF_Array*)pDest; | 82 return (CPDF_Array*)pDest; |
| 83 } | 83 } |
| 84 return NULL; | 84 return NULL; |
| 85 } | 85 } |
| 86 CPDF_Action CPDF_Bookmark::GetAction() const | 86 CPDF_Action CPDF_Bookmark::GetAction() const |
| 87 { | 87 { |
| 88 if (!m_pDict) { | 88 if (!m_pDict) { |
| 89 return NULL; | 89 return CPDF_Action(); |
| 90 } | 90 } |
| 91 return m_pDict->GetDict("A"); | 91 return CPDF_Action(m_pDict->GetDict("A")); |
| 92 } | 92 } |
| OLD | NEW |