aboutsummaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_linklist.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpdf_linklist.h')
-rw-r--r--core/fpdfdoc/cpdf_linklist.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/fpdfdoc/cpdf_linklist.h b/core/fpdfdoc/cpdf_linklist.h
index 442f66c0a..d2647181b 100644
--- a/core/fpdfdoc/cpdf_linklist.h
+++ b/core/fpdfdoc/cpdf_linklist.h
@@ -1,4 +1,4 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
+// Copyright 2016 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,17 +7,19 @@
#ifndef CORE_FPDFDOC_CPDF_LINKLIST_H_
#define CORE_FPDFDOC_CPDF_LINKLIST_H_
+#include <stdint.h>
+
#include <map>
#include <vector>
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfdoc/cpdf_link.h"
-#include "core/fxcrt/fx_system.h"
+#include "core/fxcrt/retain_ptr.h"
class CPDF_Page;
class CPDF_Dictionary;
-class CPDF_LinkList : public CPDF_Document::LinkListIface {
+class CPDF_LinkList final : public CPDF_Document::LinkListIface {
public:
CPDF_LinkList();
~CPDF_LinkList() override;
@@ -27,10 +29,9 @@ class CPDF_LinkList : public CPDF_Document::LinkListIface {
int* z_order);
private:
- const std::vector<CPDF_Dictionary*>* GetPageLinks(CPDF_Page* pPage);
- void LoadPageLinks(CPDF_Page* pPage, std::vector<CPDF_Dictionary*>* pList);
+ const std::vector<RetainPtr<CPDF_Dictionary>>* GetPageLinks(CPDF_Page* pPage);
- std::map<uint32_t, std::vector<CPDF_Dictionary*>> m_PageMap;
+ std::map<uint32_t, std::vector<RetainPtr<CPDF_Dictionary>>> m_PageMap;
};
#endif // CORE_FPDFDOC_CPDF_LINKLIST_H_