diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfdoc/cpdf_interactiveform.cpp | 6 | ||||
-rw-r--r-- | core/fpdfdoc/cpdf_interactiveform.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/core/fpdfdoc/cpdf_interactiveform.cpp b/core/fpdfdoc/cpdf_interactiveform.cpp index 754737c454..403344c0ff 100644 --- a/core/fpdfdoc/cpdf_interactiveform.cpp +++ b/core/fpdfdoc/cpdf_interactiveform.cpp @@ -827,10 +827,8 @@ void CPDF_InteractiveForm::ResetForm(NotificationOption notify) { } const std::vector<UnownedPtr<CPDF_FormControl>>& -CPDF_InteractiveForm::GetControlsForField(const CPDF_FormField* pField) const { - const auto& it = m_ControlLists.find(pField); - ASSERT(it != m_ControlLists.end()); - return it->second; +CPDF_InteractiveForm::GetControlsForField(const CPDF_FormField* pField) { + return m_ControlLists[pField]; } void CPDF_InteractiveForm::LoadField(CPDF_Dictionary* pFieldDict, int nLevel) { diff --git a/core/fpdfdoc/cpdf_interactiveform.h b/core/fpdfdoc/cpdf_interactiveform.h index 7a89320692..49335e99c0 100644 --- a/core/fpdfdoc/cpdf_interactiveform.h +++ b/core/fpdfdoc/cpdf_interactiveform.h @@ -92,7 +92,7 @@ class CPDF_InteractiveForm { CPDF_Dictionary* GetFormDict() const { return m_pFormDict.Get(); } const std::vector<UnownedPtr<CPDF_FormControl>>& GetControlsForField( - const CPDF_FormField* pField) const; + const CPDF_FormField* pField); private: void LoadField(CPDF_Dictionary* pFieldDict, int nLevel); |