From 42d72ca1aa4763901f7c80e52c9a1c367175286d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 8 Nov 2017 18:35:50 +0000 Subject: Convert XFA_SCRIPT_TYPE to an enum class This CL converts the XFA_SCRIPT_TYPE enum to the XFA_ScriptType enum class. Change-Id: If30ccd7128aaec63a3d1cb9b1c6f72d3048e4529 Reviewed-on: https://pdfium-review.googlesource.com/18031 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- fxjs/cjx_node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fxjs') diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp index 5cba641d82..318b575b12 100644 --- a/fxjs/cjx_node.cpp +++ b/fxjs/cjx_node.cpp @@ -465,7 +465,8 @@ void CJX_Node::Script_TreeClass_ResolveNode(CFXJSE_Arguments* pArguments) { } else { const XFA_SCRIPTATTRIBUTEINFO* lpAttributeInfo = resolveNodeRS.pScriptAttribute; - if (lpAttributeInfo && lpAttributeInfo->eValueType == XFA_SCRIPT_Object) { + if (lpAttributeInfo && + lpAttributeInfo->eValueType == XFA_ScriptType::Object) { auto pValue = pdfium::MakeUnique(pScriptContext->GetRuntime()); CJX_Object* jsObject = resolveNodeRS.objects.front()->JSObject(); -- cgit v1.2.3