diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-07 18:42:20 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-07 18:42:20 +0000 |
commit | f44cf89c0263708b7d475fb1aeba6ba42f54766f (patch) | |
tree | 34e9d3d2919bfbc1c251e1096c4911373f26adb3 /xfa/fxfa/cxfa_ffwidgethandler.cpp | |
parent | cce8e2f46d0fb64c2558c24a2aa33ac929dfdad6 (diff) | |
download | pdfium-f44cf89c0263708b7d475fb1aeba6ba42f54766f.tar.xz |
Rename CXFA_Calculate to CXFA_CalculateData
This CL renames CXFA_Calculate to CXFA_CalculateData to make it clear
it's part of the data hierarchy.
Change-Id: I259b9816bde9cc6c70550944906fcafa954ef32e
Reviewed-on: https://pdfium-review.googlesource.com/17976
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidgethandler.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffwidgethandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xfa/fxfa/cxfa_ffwidgethandler.cpp b/xfa/fxfa/cxfa_ffwidgethandler.cpp index e68b2192e9..7de7d27748 100644 --- a/xfa/fxfa/cxfa_ffwidgethandler.cpp +++ b/xfa/fxfa/cxfa_ffwidgethandler.cpp @@ -189,8 +189,8 @@ bool CXFA_FFWidgetHandler::HasEvent(CXFA_WidgetAcc* pWidgetAcc, switch (eEventType) { case XFA_EVENT_Calculate: { - CXFA_Calculate calc = pWidgetAcc->GetCalculate(); - return calc && calc.GetScript(); + CXFA_CalculateData calcData = pWidgetAcc->GetCalculateData(); + return calcData && calcData.GetScript(); } case XFA_EVENT_Validate: { CXFA_Validate val = pWidgetAcc->GetValidate(false); @@ -220,13 +220,13 @@ int32_t CXFA_FFWidgetHandler::ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, } return XFA_EVENTERROR_Disabled; case XFA_EVENT_InitCalculate: { - CXFA_Calculate calc = pWidgetAcc->GetCalculate(); - if (!calc) + CXFA_CalculateData calcData = pWidgetAcc->GetCalculateData(); + if (!calcData) return XFA_EVENTERROR_NotExist; if (pWidgetAcc->GetNode()->IsUserInteractive()) return XFA_EVENTERROR_Disabled; - CXFA_Script script = calc.GetScript(); + CXFA_Script script = calcData.GetScript(); return pWidgetAcc->ExecuteScript(script, pParam); } default: |