diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-11 14:34:58 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-11 14:34:58 +0000 |
commit | 4ecf9a855205d33491adf59c86e81548321542ee (patch) | |
tree | e1222f087667ead2242c278067b94bf7a82ece62 /core/fpdfdoc/cpdf_formcontrol.cpp | |
parent | 69f2156c87da65a5e53e7d1197cec9c0ca431a40 (diff) | |
download | pdfium-4ecf9a855205d33491adf59c86e81548321542ee.tar.xz |
Get rid of default ctors for CPDF_Action and CPDF_AAction.
Change-Id: I45bac6e1b3fb9ae90feff1dc65c716beb2cab4c4
Reviewed-on: https://pdfium-review.googlesource.com/20771
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_formcontrol.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_formcontrol.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/fpdfdoc/cpdf_formcontrol.cpp b/core/fpdfdoc/cpdf_formcontrol.cpp index 5e24c5fb9e..384c35ea12 100644 --- a/core/fpdfdoc/cpdf_formcontrol.cpp +++ b/core/fpdfdoc/cpdf_formcontrol.cpp @@ -243,21 +243,18 @@ int CPDF_FormControl::GetTextPosition() { CPDF_Action CPDF_FormControl::GetAction() { if (!m_pWidgetDict) - return CPDF_Action(); + return CPDF_Action(nullptr); if (m_pWidgetDict->KeyExist("A")) return CPDF_Action(m_pWidgetDict->GetDictFor("A")); CPDF_Object* pObj = FPDF_GetFieldAttr(m_pField->GetDict(), "A"); - if (!pObj) - return CPDF_Action(); - - return CPDF_Action(pObj->GetDict()); + return CPDF_Action(pObj ? pObj->GetDict() : nullptr); } CPDF_AAction CPDF_FormControl::GetAdditionalAction() { if (!m_pWidgetDict) - return CPDF_AAction(); + return CPDF_AAction(nullptr); if (m_pWidgetDict->KeyExist("AA")) return CPDF_AAction(m_pWidgetDict->GetDictFor("AA")); |