summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/fpdf_tagged.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-12-16 14:45:46 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-16 14:45:46 -0800
commitd5b81ce5722398cc8c259d76e7cd1a5ddc2c562f (patch)
tree3daa9b7e6c691a358b83ac9797bffe27753b2964 /core/fpdfdoc/fpdf_tagged.h
parentad3cd2aeff15bd31aa38544063075d910ac63823 (diff)
downloadpdfium-d5b81ce5722398cc8c259d76e7cd1a5ddc2c562f.tar.xz
Return unique_ptr<> from IPDF_StructTree
Delete some dead code in the process. Review-Url: https://codereview.chromium.org/2585873002
Diffstat (limited to 'core/fpdfdoc/fpdf_tagged.h')
-rw-r--r--core/fpdfdoc/fpdf_tagged.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/fpdfdoc/fpdf_tagged.h b/core/fpdfdoc/fpdf_tagged.h
index 716e626743..aa697ca248 100644
--- a/core/fpdfdoc/fpdf_tagged.h
+++ b/core/fpdfdoc/fpdf_tagged.h
@@ -7,6 +7,8 @@
#ifndef CORE_FPDFDOC_FPDF_TAGGED_H_
#define CORE_FPDFDOC_FPDF_TAGGED_H_
+#include <memory>
+
#include "core/fxge/fx_dib.h"
class CPDF_Dictionary;
@@ -15,9 +17,9 @@ class IPDF_StructElement;
class IPDF_StructTree {
public:
- static IPDF_StructTree* LoadDoc(const CPDF_Document* pDoc);
- static IPDF_StructTree* LoadPage(const CPDF_Document* pDoc,
- const CPDF_Dictionary* pPageDict);
+ static std::unique_ptr<IPDF_StructTree> LoadPage(
+ const CPDF_Document* pDoc,
+ const CPDF_Dictionary* pPageDict);
virtual ~IPDF_StructTree() {}