diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-03-08 15:19:50 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-08 15:19:50 +0000 |
commit | 7544a4b4fd98b4cf6e06e717758e237ffd822671 (patch) | |
tree | f2f7ee9cb7dc25eeda4e5c0d87ccf713111327a1 /core/fpdfdoc | |
parent | 507fb4ed09d5fbc92fafdfe405d79d44d11a4664 (diff) | |
download | pdfium-7544a4b4fd98b4cf6e06e717758e237ffd822671.tar.xz |
CPDF_InterForm::ResetForm always returns true
This method always returns true, so remove the return value.
Change-Id: I3da93fc5face39a53b589787873839c06c9fcfab
Reviewed-on: https://pdfium-review.googlesource.com/28210
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r-- | core/fpdfdoc/cpdf_interform.cpp | 6 | ||||
-rw-r--r-- | core/fpdfdoc/cpdf_interform.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/core/fpdfdoc/cpdf_interform.cpp b/core/fpdfdoc/cpdf_interform.cpp index 2fbc3aa32a..ac15aa66cc 100644 --- a/core/fpdfdoc/cpdf_interform.cpp +++ b/core/fpdfdoc/cpdf_interform.cpp @@ -898,7 +898,7 @@ int CPDF_InterForm::GetFormAlignment() const { return m_pFormDict ? m_pFormDict->GetIntegerFor("Q", 0) : 0; } -bool CPDF_InterForm::ResetForm(const std::vector<CPDF_FormField*>& fields, +void CPDF_InterForm::ResetForm(const std::vector<CPDF_FormField*>& fields, bool bIncludeOrExclude, bool bNotify) { size_t nCount = m_pFieldTree->m_Root.CountFields(); @@ -912,10 +912,9 @@ bool CPDF_InterForm::ResetForm(const std::vector<CPDF_FormField*>& fields, } if (bNotify && m_pFormNotify) m_pFormNotify->AfterFormReset(this); - return true; } -bool CPDF_InterForm::ResetForm(bool bNotify) { +void CPDF_InterForm::ResetForm(bool bNotify) { size_t nCount = m_pFieldTree->m_Root.CountFields(); for (size_t i = 0; i < nCount; ++i) { CPDF_FormField* pField = m_pFieldTree->m_Root.GetFieldAtIndex(i); @@ -926,7 +925,6 @@ bool CPDF_InterForm::ResetForm(bool bNotify) { } if (bNotify && m_pFormNotify) m_pFormNotify->AfterFormReset(this); - return true; } void CPDF_InterForm::LoadField(CPDF_Dictionary* pFieldDict, int nLevel) { diff --git a/core/fpdfdoc/cpdf_interform.h b/core/fpdfdoc/cpdf_interform.h index e2673840c7..2f60bf77b5 100644 --- a/core/fpdfdoc/cpdf_interform.h +++ b/core/fpdfdoc/cpdf_interform.h @@ -80,10 +80,10 @@ class CPDF_InterForm { bool bIncludeOrExclude, bool bSimpleFileSpec) const; - bool ResetForm(const std::vector<CPDF_FormField*>& fields, + void ResetForm(const std::vector<CPDF_FormField*>& fields, bool bIncludeOrExclude, bool bNotify); - bool ResetForm(bool bNotify); + void ResetForm(bool bNotify); void SetFormNotify(IPDF_FormNotify* pNotify); bool HasXFAForm() const; |