summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-07 21:42:05 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 21:42:05 +0000
commit255e61ed20e42917e0055710fb5be56b2ad40afc (patch)
treea834a34df4b2db89118012139f6b7ca346748939 /fxjs
parent5bd9a0bf3a6bf81c3706df595387f9fc497bbd72 (diff)
downloadpdfium-255e61ed20e42917e0055710fb5be56b2ad40afc.tar.xz
Rename CXFA_Validate to CXFA_ValidateData
This CL renames CXFA_Validate to CXFA_ValidateData to signify it is part of the data hierarchy. Change-Id: Ib6f743513160990b6d64c4b10618f16554dc5c08 Reviewed-on: https://pdfium-review.googlesource.com/18017 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjx_node.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp
index 2422a0f9b6..1e76790f54 100644
--- a/fxjs/cjx_node.cpp
+++ b/fxjs/cjx_node.cpp
@@ -1355,21 +1355,21 @@ void CJX_Node::Script_Som_Message(CFXJSE_Value* pValue,
return;
}
bool bNew = false;
- CXFA_Validate validate = pWidgetData->GetValidate(false);
- if (!validate) {
- validate = pWidgetData->GetValidate(true);
+ CXFA_ValidateData validateData = pWidgetData->GetValidateData(false);
+ if (!validateData) {
+ validateData = pWidgetData->GetValidateData(true);
bNew = true;
}
if (bSetting) {
switch (iMessageType) {
case XFA_SOM_ValidationMessage:
- validate.SetScriptMessageText(pValue->ToWideString());
+ validateData.SetScriptMessageText(pValue->ToWideString());
break;
case XFA_SOM_FormatMessage:
- validate.SetFormatMessageText(pValue->ToWideString());
+ validateData.SetFormatMessageText(pValue->ToWideString());
break;
case XFA_SOM_MandatoryMessage:
- validate.SetNullMessageText(pValue->ToWideString());
+ validateData.SetNullMessageText(pValue->ToWideString());
break;
default:
break;
@@ -1385,13 +1385,13 @@ void CJX_Node::Script_Som_Message(CFXJSE_Value* pValue,
WideString wsMessage;
switch (iMessageType) {
case XFA_SOM_ValidationMessage:
- validate.GetScriptMessageText(wsMessage);
+ validateData.GetScriptMessageText(wsMessage);
break;
case XFA_SOM_FormatMessage:
- validate.GetFormatMessageText(wsMessage);
+ validateData.GetFormatMessageText(wsMessage);
break;
case XFA_SOM_MandatoryMessage:
- validate.GetNullMessageText(wsMessage);
+ validateData.GetNullMessageText(wsMessage);
break;
default:
break;
@@ -1789,14 +1789,14 @@ void CJX_Node::Script_Som_Mandatory(CFXJSE_Value* pValue,
bool bSetting,
XFA_ATTRIBUTE eAttribute) {
CXFA_WidgetData* pWidgetData = GetXFANode()->GetWidgetData();
- if (!pWidgetData) {
+ if (!pWidgetData)
return;
- }
- CXFA_Validate validate = pWidgetData->GetValidate(true);
+
+ CXFA_ValidateData validateData = pWidgetData->GetValidateData(true);
if (bSetting) {
- validate.SetNullTest(pValue->ToWideString());
+ validateData.SetNullTest(pValue->ToWideString());
} else {
- int32_t iValue = validate.GetNullTest();
+ int32_t iValue = validateData.GetNullTest();
const XFA_ATTRIBUTEENUMINFO* pInfo =
GetAttributeEnumByID((XFA_ATTRIBUTEENUM)iValue);
WideString wsValue;