summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_formcontrol.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-04-19 17:38:54 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-20 00:35:01 +0000
commit03f0fb0e650f134f31991b62e39c4d9a9d577560 (patch)
tree83235fd1bfba082f92f4648bbe16e8f120c1f574 /core/fpdfdoc/cpdf_formcontrol.h
parent7a68198438f41e19f21e06e0f3447e525d0b253b (diff)
downloadpdfium-03f0fb0e650f134f31991b62e39c4d9a9d577560.tar.xz
Remove the friends of CPDF_FormField
Added some public methods so that CPDF_FormField has no friends. Change-Id: I179537e3c6ea64cedaca5365010c34c1ad702c40 Reviewed-on: https://pdfium-review.googlesource.com/4370 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_formcontrol.h')
-rw-r--r--core/fpdfdoc/cpdf_formcontrol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfdoc/cpdf_formcontrol.h b/core/fpdfdoc/cpdf_formcontrol.h
index fff77fb32d..154d592f32 100644
--- a/core/fpdfdoc/cpdf_formcontrol.h
+++ b/core/fpdfdoc/cpdf_formcontrol.h
@@ -49,7 +49,7 @@ class CPDF_FormControl {
CPDF_FormControl(CPDF_FormField* pField, CPDF_Dictionary* pWidgetDict);
CPDF_FormField::Type GetType() const { return m_pField->GetType(); }
- CPDF_InterForm* GetInterForm() const { return m_pForm; }
+ const CPDF_InterForm* GetInterForm() const { return m_pForm; }
CPDF_FormField* GetField() const { return m_pField; }
CPDF_Dictionary* GetWidget() const { return m_pWidgetDict; }
CFX_FloatRect GetRect() const { return m_pWidgetDict->GetRectFor("Rect"); }
@@ -128,7 +128,7 @@ class CPDF_FormControl {
CPDF_FormField* const m_pField;
CPDF_Dictionary* const m_pWidgetDict;
- CPDF_InterForm* const m_pForm;
+ const CPDF_InterForm* const m_pForm;
};
#endif // CORE_FPDFDOC_CPDF_FORMCONTROL_H_