diff options
author | tsepez <tsepez@chromium.org> | 2016-11-28 17:30:09 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-28 17:30:09 -0800 |
commit | 05e01698444726fae302cd335fa4880932d7c543 (patch) | |
tree | 011f7693d29e4c6726966fa1b13d5a075a1a8dea /core/fpdfdoc/cpdf_interform.h | |
parent | 405ac0f09e1622d7ff3cf60314d290851ac9f7fd (diff) | |
download | pdfium-05e01698444726fae302cd335fa4880932d7c543.tar.xz |
Make FDF document creation return unique_ptrs
Review-Url: https://codereview.chromium.org/2538533003
Diffstat (limited to 'core/fpdfdoc/cpdf_interform.h')
-rw-r--r-- | core/fpdfdoc/cpdf_interform.h | 14 |
1 files changed, 8 insertions, 6 deletions
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<CPDF_FormField*>* 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<CPDF_FormField*>& fields, - bool bIncludeOrExclude, - bool bSimpleFileSpec) const; + std::unique_ptr<CFDF_Document> ExportToFDF(const CFX_WideStringC& pdf_path, + bool bSimpleFileSpec) const; + + std::unique_ptr<CFDF_Document> ExportToFDF( + const CFX_WideStringC& pdf_path, + const std::vector<CPDF_FormField*>& fields, + bool bIncludeOrExclude, + bool bSimpleFileSpec) const; bool ResetForm(const std::vector<CPDF_FormField*>& fields, bool bIncludeOrExclude, |