From 2501ae2474c1f097a06634d647de2eb3fb730864 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 20 Nov 2017 21:19:13 +0000 Subject: Remove CXFA_DataData operator bool override This CL removes CXFA_DataData::operator bool in favour of an explicit HasValidNode method. This makes the call sites a lot clearer. Change-Id: I6fae14fdeec4674ca7916e21b9e5703070fc3069 Reviewed-on: https://pdfium-review.googlesource.com/18830 Commit-Queue: dsinclair Reviewed-by: Ryan Harrison --- fxjs/cjx_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fxjs') diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp index 8f99b1a5b8..8de755d9fd 100644 --- a/fxjs/cjx_node.cpp +++ b/fxjs/cjx_node.cpp @@ -1353,7 +1353,7 @@ void CJX_Node::Script_Som_Message(CFXJSE_Value* pValue, bool bNew = false; CXFA_ValidateData validateData = pWidgetData->GetValidateData(false); - if (!validateData) { + if (!validateData.HasValidNode()) { validateData = pWidgetData->GetValidateData(true); bNew = true; } -- cgit v1.2.3