From c7f4322f1ac8ee1604ac3e24860530994575c9af Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 11 Jan 2018 16:38:31 +0000 Subject: 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 Commit-Queue: dsinclair --- xfa/fxfa/cxfa_ffdocview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/cxfa_ffdocview.cpp') diff --git a/xfa/fxfa/cxfa_ffdocview.cpp b/xfa/fxfa/cxfa_ffdocview.cpp index 31996315df..6dd282af99 100644 --- a/xfa/fxfa/cxfa_ffdocview.cpp +++ b/xfa/fxfa/cxfa_ffdocview.cpp @@ -431,7 +431,7 @@ static int32_t XFA_ProcessEvent(CXFA_FFDocView* pDocView, if (node->IsUserInteractive()) return XFA_EVENTERROR_Disabled; - return node->ExecuteScript(pDocView, calc->GetScript(), pParam); + return node->ExecuteScript(pDocView, calc->GetScriptIfExists(), pParam); } default: break; -- cgit v1.2.3