diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-11 16:38:31 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 16:38:31 +0000 |
commit | c7f4322f1ac8ee1604ac3e24860530994575c9af (patch) | |
tree | b0d90ac2bc06c293a6c15052141b32c19a283702 /xfa/fxfa/cxfa_fffield.cpp | |
parent | ce7df754b0608887a923d5083f0bbb999a735fce (diff) | |
download | pdfium-c7f4322f1ac8ee1604ac3e24860530994575c9af.tar.xz |
Rename CXFA_Calculate methods to make return clearer
This CL renames CXFA_Calculate::GetScript to make it clearer it can
return nullptr.
Change-Id: I1f5c19c16ea6cb1b3e7016ddac3f7f7fd6aa0320
Reviewed-on: https://pdfium-review.googlesource.com/22741
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_fffield.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_fffield.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_fffield.cpp b/xfa/fxfa/cxfa_fffield.cpp index b07d80f108..5f26d4c8b6 100644 --- a/xfa/fxfa/cxfa_fffield.cpp +++ b/xfa/fxfa/cxfa_fffield.cpp @@ -684,7 +684,7 @@ int32_t CXFA_FFField::CalculateWidgetAcc(CXFA_WidgetAcc* pAcc) { } case XFA_AttributeEnum::Warning: { if (version <= XFA_VERSION_204) { - CXFA_Script* script = calc->GetScript(); + CXFA_Script* script = calc->GetScriptIfExists(); if (!script) return 1; if (script->GetExpression().IsEmpty()) |