From 05e01698444726fae302cd335fa4880932d7c543 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 28 Nov 2016 17:30:09 -0800 Subject: Make FDF document creation return unique_ptrs Review-Url: https://codereview.chromium.org/2538533003 --- core/fpdfdoc/cpdf_interform.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'core/fpdfdoc/cpdf_interform.h') diff --git a/core/fpdfdoc/cpdf_interform.h b/core/fpdfdoc/cpdf_interform.h index fbff0289a1..f03ffb1e60 100644 --- a/core/fpdfdoc/cpdf_interform.h +++ b/core/fpdfdoc/cpdf_interform.h @@ -73,12 +73,14 @@ class CPDF_InterForm { const std::vector* fields, bool bIncludeOrExclude) const; - CFDF_Document* ExportToFDF(const CFX_WideStringC& pdf_path, - bool bSimpleFileSpec) const; - CFDF_Document* ExportToFDF(const CFX_WideStringC& pdf_path, - const std::vector& fields, - bool bIncludeOrExclude, - bool bSimpleFileSpec) const; + std::unique_ptr ExportToFDF(const CFX_WideStringC& pdf_path, + bool bSimpleFileSpec) const; + + std::unique_ptr ExportToFDF( + const CFX_WideStringC& pdf_path, + const std::vector& fields, + bool bIncludeOrExclude, + bool bSimpleFileSpec) const; bool ResetForm(const std::vector& fields, bool bIncludeOrExclude, -- cgit v1.2.3