Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: core/fpdfdoc/fpdf_tagged.h

Issue 2585873002: Return unique_ptr<> from IPDF_StructTree (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/fpdfdoc/fpdf_tagged.h
diff --git a/core/fpdfdoc/fpdf_tagged.h b/core/fpdfdoc/fpdf_tagged.h
index 716e626743f4bd0f22e44a9ba955eb976fac74a9..aa697ca248ea745dd51e1ef60809e619e675a946 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() {}

Powered by Google App Engine
This is Rietveld 408576698