diff options
author | Nicolas Pena <npm@chromium.org> | 2017-01-23 15:48:51 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-24 15:30:36 +0000 |
commit | a478dc5ca23b6f2f609b119cdc6b0336d1471d8c (patch) | |
tree | c57caac5f6341d4c340a6cf18802168b07e09eb1 /core/fpdfdoc/cpdf_interform.h | |
parent | 7e5fdd0b1a2ce17e89723fee3e58ae472e32461f (diff) | |
download | pdfium-a478dc5ca23b6f2f609b119cdc6b0336d1471d8c.tar.xz |
Fix CPDF_InterForm::CheckRequiredFields and its callers.
The method is used twice in fpdfsdk/cpdfsdk_interform.cpp and twice in
fpdfsdk/javascript/Document.cpp, but not in a compatible way. Changed
the method so that it now returns true when checks pass, which is the
more natural thing to do, considering the name of the method.
BUG=pdfium:659
Change-Id: Iacf3049f328df1d4db3fbfc995acf184230ebf48
Reviewed-on: https://pdfium-review.googlesource.com/2297
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_interform.h')
-rw-r--r-- | core/fpdfdoc/cpdf_interform.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fpdfdoc/cpdf_interform.h b/core/fpdfdoc/cpdf_interform.h index b846973435..a42c4cef84 100644 --- a/core/fpdfdoc/cpdf_interform.h +++ b/core/fpdfdoc/cpdf_interform.h @@ -69,9 +69,8 @@ class CPDF_InterForm { CPDF_DefaultAppearance GetDefaultAppearance() const; int GetFormAlignment() const; - CPDF_FormField* CheckRequiredFields( - const std::vector<CPDF_FormField*>* fields, - bool bIncludeOrExclude) const; + bool CheckRequiredFields(const std::vector<CPDF_FormField*>* fields, + bool bIncludeOrExclude) const; std::unique_ptr<CFDF_Document> ExportToFDF(const CFX_WideStringC& pdf_path, bool bSimpleFileSpec) const; |