diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-11 14:19:51 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 14:19:51 +0000 |
commit | 8b68d30fdc8ae33a8a5c2d647bd7a67f1271ff90 (patch) | |
tree | af41a878d0e7a662655391f4a235af17aeee6460 /xfa/fxfa/cxfa_ffwidgethandler.cpp | |
parent | 89fa5dfee5107736597682f174fdc95d0baec830 (diff) | |
download | pdfium-8b68d30fdc8ae33a8a5c2d647bd7a67f1271ff90.tar.xz |
Rename Getvalidate and GetOrCreateValidate
This CL renames the validation methods to make it clear they can return
nullptr.
Change-Id: I60d0c41cdfe9902049d99cd790f851517b11a6d9
Reviewed-on: https://pdfium-review.googlesource.com/22682
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidgethandler.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffwidgethandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffwidgethandler.cpp b/xfa/fxfa/cxfa_ffwidgethandler.cpp index 3a9ff9a316..d4ead07ba9 100644 --- a/xfa/fxfa/cxfa_ffwidgethandler.cpp +++ b/xfa/fxfa/cxfa_ffwidgethandler.cpp @@ -198,7 +198,7 @@ bool CXFA_FFWidgetHandler::HasEvent(CXFA_WidgetAcc* pWidgetAcc, return calc && calc->GetScript(); } case XFA_EVENT_Validate: { - CXFA_Validate* validate = node->GetValidate(); + CXFA_Validate* validate = node->GetValidateIfExists(); return validate && validate->GetScript(); } default: |