diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-16 15:46:46 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-16 15:46:46 +0000 |
commit | d021ad2f6306ae9d7b2ab5acf225c3bd8e957f8f (patch) | |
tree | b7acd3dbf3dd3916ffa2a85dd350af28c524437c /xfa/fxfa/parser/cxfa_validate.cpp | |
parent | 54e4ccbbf09c496f8ab79a2b02fc4afc3d6abc42 (diff) | |
download | pdfium-d021ad2f6306ae9d7b2ab5acf225c3bd8e957f8f.tar.xz |
Rename CXFA_Validate methods for clarity
This CL updates GetScript to make clearer it can return nullptr.
Change-Id: Ic0cf74b3f592dd413ce6fb7a38b29f70487a8dd5
Reviewed-on: https://pdfium-review.googlesource.com/22772
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_validate.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_validate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_validate.cpp b/xfa/fxfa/parser/cxfa_validate.cpp index 9e7ffcee50..152fd97fa7 100644 --- a/xfa/fxfa/parser/cxfa_validate.cpp +++ b/xfa/fxfa/parser/cxfa_validate.cpp @@ -147,6 +147,6 @@ WideString CXFA_Validate::GetPicture() { return pNode ? pNode->JSObject()->GetContent(false) : L""; } -CXFA_Script* CXFA_Validate::GetScript() { +CXFA_Script* CXFA_Validate::GetScriptIfExists() { return GetChild<CXFA_Script>(0, XFA_Element::Script, false); } |