summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_docjsactions.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-11 14:34:58 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-11 14:34:58 +0000
commit4ecf9a855205d33491adf59c86e81548321542ee (patch)
treee1222f087667ead2242c278067b94bf7a82ece62 /core/fpdfdoc/cpdf_docjsactions.cpp
parent69f2156c87da65a5e53e7d1197cec9c0ca431a40 (diff)
downloadpdfium-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_docjsactions.cpp')
-rw-r--r--core/fpdfdoc/cpdf_docjsactions.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/fpdfdoc/cpdf_docjsactions.cpp b/core/fpdfdoc/cpdf_docjsactions.cpp
index 974ca33b8b..91db2b0484 100644
--- a/core/fpdfdoc/cpdf_docjsactions.cpp
+++ b/core/fpdfdoc/cpdf_docjsactions.cpp
@@ -22,17 +22,13 @@ CPDF_Action CPDF_DocJSActions::GetJSActionAndName(int index,
WideString* csName) const {
ASSERT(m_pDocument);
CPDF_NameTree name_tree(m_pDocument.Get(), "JavaScript");
- CPDF_Object* pAction = name_tree.LookupValueAndName(index, csName);
- return ToDictionary(pAction) ? CPDF_Action(pAction->GetDict())
- : CPDF_Action();
+ return CPDF_Action(ToDictionary(name_tree.LookupValueAndName(index, csName)));
}
CPDF_Action CPDF_DocJSActions::GetJSAction(const WideString& csName) const {
ASSERT(m_pDocument);
CPDF_NameTree name_tree(m_pDocument.Get(), "JavaScript");
- CPDF_Object* pAction = name_tree.LookupValue(csName);
- return ToDictionary(pAction) ? CPDF_Action(pAction->GetDict())
- : CPDF_Action();
+ return CPDF_Action(ToDictionary(name_tree.LookupValue(csName)));
}
int CPDF_DocJSActions::FindJSAction(const WideString& csName) const {