summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_bookmark.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpdf_bookmark.h')
-rw-r--r--core/fpdfdoc/cpdf_bookmark.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/fpdfdoc/cpdf_bookmark.h b/core/fpdfdoc/cpdf_bookmark.h
index 30a8a512cc..b9a1ac650e 100644
--- a/core/fpdfdoc/cpdf_bookmark.h
+++ b/core/fpdfdoc/cpdf_bookmark.h
@@ -9,6 +9,7 @@
#include "core/fpdfdoc/cpdf_action.h"
#include "core/fpdfdoc/cpdf_dest.h"
+#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_string.h"
class CPDF_Dictionary;
@@ -16,10 +17,12 @@ class CPDF_Document;
class CPDF_Bookmark {
public:
- CPDF_Bookmark() : m_pDict(nullptr) {}
- explicit CPDF_Bookmark(CPDF_Dictionary* pDict) : m_pDict(pDict) {}
+ CPDF_Bookmark();
+ CPDF_Bookmark(const CPDF_Bookmark& that);
+ explicit CPDF_Bookmark(CPDF_Dictionary* pDict);
+ ~CPDF_Bookmark();
- CPDF_Dictionary* GetDict() const { return m_pDict; }
+ CPDF_Dictionary* GetDict() const { return m_pDict.Get(); }
uint32_t GetColorRef() const;
uint32_t GetFontStyle() const;
CFX_WideString GetTitle() const;
@@ -27,7 +30,7 @@ class CPDF_Bookmark {
CPDF_Action GetAction() const;
private:
- CPDF_Dictionary* m_pDict;
+ CFX_UnownedPtr<CPDF_Dictionary> m_pDict;
};
#endif // CORE_FPDFDOC_CPDF_BOOKMARK_H_