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

Unified Diff: fpdfsdk/fpdf_structtree.cpp

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
« core/fpdfdoc/doc_tagged.cpp ('K') | « core/fpdfdoc/tagged_int.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/fpdf_structtree.cpp
diff --git a/fpdfsdk/fpdf_structtree.cpp b/fpdfsdk/fpdf_structtree.cpp
index 541c46b378c74561446e96a3516d7bed00c1bce1..9bc1df66f8e07738a18de5b0612a424ce51f71ab 100644
--- a/fpdfsdk/fpdf_structtree.cpp
+++ b/fpdfsdk/fpdf_structtree.cpp
@@ -25,7 +25,8 @@ DLLEXPORT FPDF_STRUCTTREE STDCALL FPDF_StructTree_GetForPage(FPDF_PAGE page) {
CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
if (!pPage)
return nullptr;
- return IPDF_StructTree::LoadPage(pPage->m_pDocument, pPage->m_pFormDict);
+ return IPDF_StructTree::LoadPage(pPage->m_pDocument, pPage->m_pFormDict)
+ .release();
}
DLLEXPORT void STDCALL FPDF_StructTree_Close(FPDF_STRUCTTREE struct_tree) {
« core/fpdfdoc/doc_tagged.cpp ('K') | « core/fpdfdoc/tagged_int.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698